home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-10-19 | 52.5 KB | [ONLN/HLX2] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Mon Oct 17 10:32:00 1994, modified Wed Oct 19 10:42:03 1994, creator 'HLX2', type 'ONLN', 51548 bytes "TB12 Key Mapping" , at 0xc9dc 1982 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
100%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [ONLN] |
macFileCreator | [HLX2] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 10 54 42 31 32 20 4b | 65 79 20 4d 61 70 70 69 |..TB12 K|ey Mappi|
|00000010| 6e 67 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ng......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 00 c9 5c 00 | 00 07 be aa c8 3b 60 aa |......\.|.....;`.|
|00000060| ca e0 bb 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ed 6c 00 00 |........|.....l..|
|00000080| 54 42 20 31 32 20 2d 20 | 4b 65 79 20 4d 61 70 70 |TB 12 - |Key Mapp|
|00000090| 69 6e 67 0d 54 6f 6f 6c | 62 6f 78 09 0d 52 65 76 |ing.Tool|box..Rev|
|000000a0| 69 73 65 64 20 62 79 3a | 09 4a 69 6d 20 4c 75 74 |ised by:|.Jim Lut|
|000000b0| 68 65 72 2c 20 50 65 74 | 65 72 20 45 64 62 65 72 |her, Pet|er Edber|
|000000c0| 67 2c 20 26 20 49 6d 72 | 61 6e 20 53 61 79 65 65 |g, & Imr|an Sayee|
|000000d0| 64 09 46 65 62 72 75 61 | 72 79 20 31 39 39 31 0d |d.Februa|ry 1991.|
|000000e0| 57 72 69 74 74 65 6e 20 | 62 79 3a 09 43 61 6d 65 |Written |by:.Came|
|000000f0| 72 6f 6e 20 42 69 72 73 | 65 09 53 65 70 74 65 6d |ron Birs|e.Septem|
|00000100| 62 65 72 20 31 39 38 37 | 0d 54 68 69 73 20 54 65 |ber 1987|.This Te|
|00000110| 63 68 6e 69 63 61 6c 20 | 4e 6f 74 65 20 64 65 73 |chnical |Note des|
|00000120| 63 72 69 62 65 73 20 74 | 68 65 20 4d 61 63 69 6e |cribes t|he Macin|
|00000130| 74 6f 73 68 20 66 61 6d | 69 6c 79 20 6b 65 79 20 |tosh fam|ily key |
|00000140| 63 6f 64 65 20 6d 61 70 | 70 69 6e 67 20 73 63 68 |code map|ping sch|
|00000150| 65 6d 65 20 77 68 65 6e | 20 72 75 6e 6e 69 6e 67 |eme when| running|
|00000160| 20 53 79 73 74 65 6d 20 | 66 69 6c 65 20 34 2e 31 | System |file 4.1|
|00000170| 20 61 6e 64 20 6c 61 74 | 65 72 2e 20 20 54 68 69 | and lat|er. Thi|
|00000180| 73 20 4e 6f 74 65 20 61 | 6c 73 6f 20 70 72 6f 76 |s Note a|lso prov|
|00000190| 69 64 65 73 20 61 20 d2 | 73 61 66 65 d3 20 6d 65 |ides a .|safe. me|
|000001a0| 74 68 6f 64 20 66 6f 72 | 20 72 65 6d 61 70 70 69 |thod for| remappi|
|000001b0| 6e 67 20 6b 65 79 62 6f | 61 72 64 73 2e 0d 43 68 |ng keybo|ards..Ch|
|000001c0| 61 6e 67 65 73 20 73 69 | 6e 63 65 20 4f 63 74 6f |anges si|nce Octo|
|000001d0| 62 65 72 20 31 39 39 30 | 3a 20 20 41 64 64 65 64 |ber 1990|: Added|
|000001e0| 20 61 20 73 65 63 74 69 | 6f 6e 20 6f 6e 20 68 6f | a secti|on on ho|
|000001f0| 77 20 27 4b 4d 41 50 27 | 20 72 65 73 6f 75 72 63 |w 'KMAP'| resourc|
|00000200| 65 73 20 61 72 65 20 6d | 61 74 63 68 65 64 20 74 |es are m|atched t|
|00000210| 6f 20 73 70 65 63 69 66 | 69 63 20 41 44 42 20 6b |o specif|ic ADB k|
|00000220| 65 79 62 6f 61 72 64 20 | 74 79 70 65 73 20 61 6e |eyboard |types an|
|00000230| 64 20 61 20 73 65 63 74 | 69 6f 6e 20 6f 6e 20 74 |d a sect|ion on t|
|00000240| 68 65 20 6f 72 69 67 69 | 6e 61 6c 20 4d 61 63 69 |he origi|nal Maci|
|00000250| 6e 74 6f 73 68 20 61 6e | 64 20 4d 61 63 69 6e 74 |ntosh an|d Macint|
|00000260| 6f 73 68 20 50 6c 75 73 | 20 6b 65 79 62 6f 61 72 |osh Plus| keyboar|
|00000270| 64 73 2e 0d 49 6e 74 72 | 6f 64 75 63 74 69 6f 6e |ds..Intr|oduction|
|00000280| 0d 53 79 73 74 65 6d 20 | 66 69 6c 65 20 34 2e 31 |.System |file 4.1|
|00000290| 20 69 6e 74 72 6f 64 75 | 63 65 64 20 61 20 63 68 | introdu|ced a ch|
|000002a0| 61 6e 67 65 20 69 6e 20 | 74 68 65 20 6b 65 79 73 |ange in |the keys|
|000002b0| 74 72 6f 6b 65 20 6d 61 | 70 70 69 6e 67 20 6d 65 |troke ma|pping me|
|000002c0| 63 68 61 6e 69 73 6d 20 | 66 6f 72 20 74 68 65 20 |chanism |for the |
|000002d0| 4d 61 63 69 6e 74 6f 73 | 68 20 66 61 6d 69 6c 79 |Macintos|h family|
|000002e0| 2e 20 20 4f 72 69 67 69 | 6e 61 6c 6c 79 2c 20 61 |. Origi|nally, a|
|000002f0| 20 6b 65 79 73 74 72 6f | 6b 65 20 63 61 75 73 65 | keystro|ke cause|
|00000300| 64 20 61 6e 20 69 6e 74 | 65 72 72 75 70 74 2c 20 |d an int|errupt, |
|00000310| 61 6e 64 20 74 68 65 20 | 69 6e 74 65 72 72 75 70 |and the |interrup|
|00000320| 74 20 68 61 6e 64 6c 65 | 72 20 64 69 73 70 61 74 |t handle|r dispat|
|00000330| 63 68 65 64 20 74 68 65 | 20 6b 65 79 63 6f 64 65 |ched the| keycode|
|00000340| 20 74 6f 20 61 20 74 72 | 61 6e 73 6c 61 74 69 6f | to a tr|anslatio|
|00000350| 6e 20 72 6f 75 74 69 6e | 65 20 70 6f 69 6e 74 65 |n routin|e pointe|
|00000360| 64 20 74 6f 20 62 79 20 | 61 20 6c 6f 77 2d 6d 65 |d to by |a low-me|
|00000370| 6d 6f 72 79 20 70 6f 69 | 6e 74 65 72 20 28 4b 65 |mory poi|nter (Ke|
|00000380| 79 31 54 72 61 6e 73 20 | 6f 72 20 4b 65 79 32 54 |y1Trans |or Key2T|
|00000390| 72 61 6e 73 29 2e 20 20 | 54 68 65 20 53 79 73 74 |rans). |The Syst|
|000003a0| 65 6d 20 75 73 65 64 20 | 74 6f 20 69 6e 73 74 61 |em used |to insta|
|000003b0| 6c 6c 20 74 68 69 73 20 | 72 6f 75 74 69 6e 65 20 |ll this |routine |
|000003c0| 61 74 20 62 6f 6f 74 20 | 74 69 6d 65 2c 20 61 6e |at boot |time, an|
|000003d0| 64 20 64 65 76 65 6c 6f | 70 65 72 73 20 77 6f 75 |d develo|pers wou|
|000003e0| 6c 64 20 67 65 6e 65 72 | 61 6c 6c 79 20 72 65 70 |ld gener|ally rep|
|000003f0| 6c 61 63 65 20 69 74 20 | 69 6e 20 70 61 72 74 20 |lace it |in part |
|00000400| 6f 72 20 65 6e 74 69 72 | 65 6c 79 20 74 6f 20 72 |or entir|ely to r|
|00000410| 65 6d 61 70 20 74 68 65 | 20 6b 65 79 62 6f 61 72 |emap the| keyboar|
|00000420| 64 2e 20 20 57 68 65 6e | 20 74 68 65 20 6b 65 79 |d. When| the key|
|00000430| 63 6f 64 65 20 77 61 73 | 20 6d 61 70 70 65 64 2c |code was| mapped,|
|00000440| 20 69 74 20 77 61 73 20 | 72 65 74 75 72 6e 65 64 | it was |returned|
|00000450| 20 74 6f 20 74 68 65 20 | 69 6e 74 65 72 72 75 70 | to the |interrup|
|00000460| 74 20 68 61 6e 64 6c 65 | 72 2c 20 77 68 69 63 68 |t handle|r, which|
|00000470| 20 74 68 65 6e 20 70 6f | 73 74 65 64 20 74 68 65 | then po|sted the|
|00000480| 20 65 76 65 6e 74 2e 20 | 20 54 68 65 20 53 79 73 | event. | The Sys|
|00000490| 74 65 6d 20 66 69 6c 65 | 20 63 6f 6e 74 61 69 6e |tem file| contain|
|000004a0| 65 64 20 62 6f 74 68 20 | 74 68 65 20 74 72 61 6e |ed both |the tran|
|000004b0| 73 6c 61 74 69 6f 6e 20 | 72 6f 75 74 69 6e 65 20 |slation |routine |
|000004c0| 61 6e 64 20 74 68 65 20 | 6b 65 79 20 6d 61 70 20 |and the |key map |
|000004d0| 69 6e 20 27 49 4e 49 54 | 27 20 72 65 73 6f 75 72 |in 'INIT|' resour|
|000004e0| 63 65 73 20 49 44 20 3d | 20 30 20 61 6e 64 20 49 |ces ID =| 0 and I|
|000004f0| 44 20 3d 20 31 2e 0d 49 | 6e 20 61 6c 6c 20 53 79 |D = 1..I|n all Sy|
|00000500| 73 74 65 6d 20 66 69 6c | 65 73 20 73 69 6e 63 65 |stem fil|es since|
|00000510| 20 34 2e 31 2c 20 74 68 | 65 20 6c 6f 77 2d 6d 65 | 4.1, th|e low-me|
|00000520| 6d 6f 72 79 20 70 6f 69 | 6e 74 65 72 73 20 61 72 |mory poi|nters ar|
|00000530| 65 20 73 74 69 6c 6c 20 | 74 68 65 72 65 2c 20 61 |e still |there, a|
|00000540| 6e 64 20 74 68 65 20 4d | 61 63 69 6e 74 6f 73 68 |nd the M|acintosh|
|00000550| 20 50 6c 75 73 20 73 74 | 69 6c 6c 20 63 61 6c 6c | Plus st|ill call|
|00000560| 73 20 74 68 65 6d 3b 20 | 68 6f 77 65 76 65 72 2c |s them; |however,|
|00000570| 20 4d 61 63 69 6e 74 6f | 73 68 20 73 79 73 74 65 | Macinto|sh syste|
|00000580| 6d 73 20 65 71 75 69 70 | 70 65 64 20 77 69 74 68 |ms equip|ped with|
|00000590| 20 41 44 42 20 64 6f 20 | 6e 6f 74 20 63 61 6c 6c | ADB do |not call|
|000005a0| 20 74 68 65 73 65 20 6c | 6f 77 2d 6d 65 6d 6f 72 | these l|ow-memor|
|000005b0| 79 20 70 6f 69 6e 74 65 | 72 73 2e 20 20 54 68 65 |y pointe|rs. The|
|000005c0| 20 53 79 73 74 65 6d 20 | 70 72 65 73 65 72 76 65 | System |preserve|
|000005d0| 73 20 74 68 65 6d 20 73 | 6f 20 61 70 70 6c 69 63 |s them s|o applic|
|000005e0| 61 74 69 6f 6e 73 20 74 | 68 61 74 20 63 61 6c 6c |ations t|hat call|
|000005f0| 20 74 68 65 6d 20 63 61 | 6e 20 73 74 69 6c 6c 20 | them ca|n still |
|00000600| 75 73 65 20 74 68 65 6d | 20 74 6f 20 74 72 61 6e |use them| to tran|
|00000610| 73 6c 61 74 65 20 6b 65 | 79 63 6f 64 65 73 2c 20 |slate ke|ycodes, |
|00000620| 62 75 74 20 73 69 6e 63 | 65 20 53 79 73 74 65 6d |but sinc|e System|
|00000630| 20 66 69 6c 65 20 34 2e | 31 2c 20 74 68 65 79 20 | file 4.|1, they |
|00000640| 70 6f 69 6e 74 20 74 6f | 20 61 20 72 6f 75 74 69 |point to| a routi|
|00000650| 6e 65 20 74 68 61 74 20 | 69 6d 70 6c 65 6d 65 6e |ne that |implemen|
|00000660| 74 73 20 61 20 64 69 66 | 66 65 72 65 6e 74 20 6d |ts a dif|ferent m|
|00000670| 65 63 68 61 6e 69 73 6d | 2e 0d 41 44 42 20 4b 65 |echanism|..ADB Ke|
|00000680| 79 62 6f 61 72 64 73 0d | 57 69 74 68 20 6d 75 6c |yboards.|With mul|
|00000690| 74 69 70 6c 65 20 41 70 | 70 6c 65 20 44 65 73 6b |tiple Ap|ple Desk|
|000006a0| 74 6f 70 20 42 75 73 20 | 28 41 44 42 29 20 6b 65 |top Bus |(ADB) ke|
|000006b0| 79 62 6f 61 72 64 73 2c | 20 61 20 6d 65 63 68 61 |yboards,| a mecha|
|000006c0| 6e 69 73 6d 20 69 73 20 | 6e 65 65 64 65 64 20 74 |nism is |needed t|
|000006d0| 6f 20 6d 61 70 20 74 68 | 65 20 64 69 66 66 65 72 |o map th|e differ|
|000006e0| 65 6e 74 20 72 61 77 20 | 6b 65 79 63 6f 64 65 73 |ent raw |keycodes|
|000006f0| 20 74 6f 20 61 20 73 74 | 61 6e 64 61 72 64 20 76 | to a st|andard v|
|00000700| 69 72 74 75 61 6c 20 6b | 65 79 63 6f 64 65 20 74 |irtual k|eycode t|
|00000710| 68 61 74 20 63 61 6e 20 | 62 65 20 6d 61 70 70 65 |hat can |be mappe|
|00000720| 64 20 74 6f 20 41 53 43 | 49 49 20 61 6e 64 20 73 |d to ASC|II and s|
|00000730| 70 65 63 69 61 6c 20 63 | 68 61 72 61 63 74 65 72 |pecial c|haracter|
|00000740| 20 73 65 74 73 2e 20 20 | 54 68 69 73 20 6d 61 70 | sets. |This map|
|00000750| 70 69 6e 67 20 69 73 20 | 64 6f 6e 65 20 69 6e 20 |ping is |done in |
|00000760| 61 6e 20 65 66 66 6f 72 | 74 20 74 6f 20 72 65 64 |an effor|t to red|
|00000770| 75 63 65 20 6b 65 79 62 | 6f 61 72 64 20 68 61 72 |uce keyb|oard har|
|00000780| 64 77 61 72 65 20 64 65 | 70 65 6e 64 65 6e 63 65 |dware de|pendence|
|00000790| 2c 20 61 6e 64 20 74 68 | 65 20 72 61 77 20 6d 61 |, and th|e raw ma|
|000007a0| 70 70 69 6e 67 20 72 6f | 75 74 69 6e 65 20 75 73 |pping ro|utine us|
|000007b0| 65 73 20 61 20 74 61 62 | 6c 65 20 77 68 69 63 68 |es a tab|le which|
|000007c0| 20 69 73 20 72 65 73 69 | 64 65 6e 74 20 69 6e 20 | is resi|dent in |
|000007d0| 74 68 65 20 53 79 73 74 | 65 6d 20 27 4b 4d 41 50 |the Syst|em 'KMAP|
|000007e0| 27 20 72 65 73 6f 75 72 | 63 65 2e 20 20 42 61 73 |' resour|ce. Bas|
|000007f0| 69 63 61 6c 6c 79 2c 20 | 74 68 65 20 72 61 77 20 |ically, |the raw |
|00000800| 6b 65 79 63 6f 64 65 20 | 69 73 20 75 73 65 64 20 |keycode |is used |
|00000810| 74 6f 20 69 6e 64 65 78 | 20 69 6e 74 6f 20 74 68 |to index| into th|
|00000820| 65 20 27 4b 4d 41 50 27 | 20 74 61 62 6c 65 3b 20 |e 'KMAP'| table; |
|00000830| 74 68 65 20 76 61 6c 75 | 65 20 61 74 20 74 68 65 |the valu|e at the|
|00000840| 20 69 6e 64 65 78 65 64 | 20 6c 6f 63 61 74 69 6f | indexed| locatio|
|00000850| 6e 20 69 6e 20 74 68 65 | 20 27 4b 4d 41 50 27 20 |n in the| 'KMAP' |
|00000860| 69 73 20 77 68 61 74 20 | 67 65 74 73 20 72 65 74 |is what |gets ret|
|00000870| 75 72 6e 65 64 20 61 73 | 20 74 68 65 20 76 69 72 |urned as| the vir|
|00000880| 74 75 61 6c 20 6b 65 79 | 63 6f 64 65 2e 0d 54 68 |tual key|code..Th|
|00000890| 65 20 27 4b 4d 41 50 27 | 20 72 65 73 6f 75 72 63 |e 'KMAP'| resourc|
|000008a0| 65 20 49 44 20 74 68 61 | 74 20 6d 61 74 63 68 65 |e ID tha|t matche|
|000008b0| 73 20 74 68 65 20 6b 65 | 79 62 6f 61 72 64 20 74 |s the ke|yboard t|
|000008c0| 79 70 65 20 69 73 20 75 | 73 65 64 20 69 66 20 74 |ype is u|sed if t|
|000008d0| 68 61 74 20 27 4b 4d 41 | 50 27 20 72 65 73 6f 75 |hat 'KMA|P' resou|
|000008e0| 72 63 65 20 69 73 20 70 | 72 65 73 65 6e 74 2e 20 |rce is p|resent. |
|000008f0| 20 49 66 20 61 20 27 4b | 4d 41 50 27 20 72 65 73 | If a 'K|MAP' res|
|00000900| 6f 75 72 63 65 20 49 44 | 20 74 68 61 74 20 6d 61 |ource ID| that ma|
|00000910| 74 63 68 65 73 20 74 68 | 65 20 6b 65 79 62 6f 61 |tches th|e keyboa|
|00000920| 72 64 20 74 79 70 65 20 | 63 61 6e 6e 6f 74 20 62 |rd type |cannot b|
|00000930| 65 20 66 6f 75 6e 64 2c | 20 74 68 65 6e 20 74 68 |e found,| then th|
|00000940| 65 20 73 79 73 74 65 6d | 20 61 74 74 65 6d 70 74 |e system| attempt|
|00000950| 73 20 74 6f 20 75 73 65 | 20 27 4b 4d 41 50 27 20 |s to use| 'KMAP' |
|00000960| 72 65 73 6f 75 72 63 65 | 20 49 44 20 3d 20 30 2e |resource| ID = 0.|
|00000970| 20 20 49 66 20 27 4b 4d | 41 50 27 20 72 65 73 6f | If 'KM|AP' reso|
|00000980| 75 72 63 65 20 49 44 20 | 3d 20 30 20 63 61 6e 6e |urce ID |= 0 cann|
|00000990| 6f 74 20 62 65 20 66 6f | 75 6e 64 2c 20 74 68 65 |ot be fo|und, the|
|000009a0| 6e 20 72 61 77 20 6b 65 | 79 63 6f 64 65 20 74 6f |n raw ke|ycode to|
|000009b0| 20 76 69 72 74 75 61 6c | 20 6b 65 79 63 6f 64 65 | virtual| keycode|
|000009c0| 20 6d 61 70 70 69 6e 67 | 20 64 6f 65 73 20 6e 6f | mapping| does no|
|000009d0| 74 20 6f 63 63 75 72 2e | 20 20 4f 6e 20 61 6c 6c |t occur.| On all|
|000009e0| 20 4d 61 63 69 6e 74 6f | 73 68 20 73 79 73 74 65 | Macinto|sh syste|
|000009f0| 6d 73 20 6c 61 74 65 72 | 20 74 68 61 6e 20 74 68 |ms later| than th|
|00000a00| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 50 6c 75 73 |e Macint|osh Plus|
|00000a10| 2c 20 27 4b 4d 41 50 27 | 20 72 65 73 6f 75 72 63 |, 'KMAP'| resourc|
|00000a20| 65 20 49 44 20 3d 20 30 | 20 69 73 20 69 6e 20 52 |e ID = 0| is in R|
|00000a30| 4f 4d 2e 20 20 54 68 65 | 20 67 6c 6f 62 61 6c 20 |OM. The| global |
|00000a40| 76 61 72 69 61 62 6c 65 | 20 4b 62 64 54 79 70 65 |variable| KbdType|
|00000a50| 20 28 61 20 62 79 74 65 | 29 20 63 6f 6e 74 61 69 | (a byte|) contai|
|00000a60| 6e 73 20 74 68 65 20 74 | 79 70 65 20 6f 66 20 74 |ns the t|ype of t|
|00000a70| 68 65 20 6c 61 73 74 20 | 6b 65 79 62 6f 61 72 64 |he last |keyboard|
|00000a80| 20 75 73 65 64 2e 0d 4b | 62 64 54 79 70 65 09 4b | used..K|bdType.K|
|00000a90| 65 79 62 6f 61 72 64 20 | 54 79 70 65 0d 24 30 31 |eyboard |Type.$01|
|00000aa0| 09 41 70 70 6c 65 20 4b | 65 79 62 6f 61 72 64 20 |.Apple K|eyboard |
|00000ab0| 28 73 74 61 6e 64 61 72 | 64 29 20 61 6e 64 20 41 |(standar|d) and A|
|00000ac0| 70 70 6c 65 20 44 65 73 | 6b 74 6f 70 20 42 75 73 |pple Des|ktop Bus|
|00000ad0| 20 4b 65 79 62 6f 61 72 | 64 20 28 49 49 67 73 29 | Keyboar|d (IIgs)|
|00000ae0| 0d 24 30 32 09 41 70 70 | 6c 65 20 45 78 74 65 6e |.$02.App|le Exten|
|00000af0| 64 65 64 20 4b 65 79 62 | 6f 61 72 64 20 61 6e 64 |ded Keyb|oard and|
|00000b00| 20 41 70 70 6c 65 20 45 | 78 74 65 6e 64 65 64 20 | Apple E|xtended |
|00000b10| 4b 65 79 62 6f 61 72 64 | 20 49 49 0d 24 30 34 09 |Keyboard| II.$04.|
|00000b20| 41 70 70 6c 65 20 4b 65 | 79 62 6f 61 72 64 2c 20 |Apple Ke|yboard, |
|00000b30| 49 53 4f 0d 24 30 35 09 | 41 70 70 6c 65 20 45 78 |ISO.$05.|Apple Ex|
|00000b40| 74 65 6e 64 65 64 20 4b | 65 79 62 6f 61 72 64 20 |tended K|eyboard |
|00000b50| 49 49 2c 20 49 53 4f 0d | 24 30 36 09 50 6f 72 74 |II, ISO.|$06.Port|
|00000b60| 61 62 6c 65 0d 24 30 37 | 09 50 6f 72 74 61 62 6c |able.$07|.Portabl|
|00000b70| 65 2c 20 49 53 4f 0d 24 | 30 38 09 41 70 70 6c 65 |e, ISO.$|08.Apple|
|00000b80| 20 4b 65 79 62 6f 61 72 | 64 20 49 49 0d 24 30 39 | Keyboar|d II.$09|
|00000b90| 09 41 70 70 6c 65 20 4b | 65 79 62 6f 61 72 64 20 |.Apple K|eyboard |
|00000ba0| 49 49 2c 20 49 53 4f 0d | 57 69 74 68 20 74 68 69 |II, ISO.|With thi|
|00000bb0| 73 20 6d 65 63 68 61 6e | 69 73 6d 2c 20 74 68 65 |s mechan|ism, the|
|00000bc0| 20 6b 65 79 73 74 72 6f | 6b 65 20 63 61 75 73 65 | keystro|ke cause|
|00000bd0| 73 20 61 6e 20 69 6e 74 | 65 72 72 75 70 74 2c 20 |s an int|errupt, |
|00000be0| 61 6e 64 20 74 68 65 20 | 69 6e 74 65 72 72 75 70 |and the |interrup|
|00000bf0| 74 20 68 61 6e 64 6c 65 | 72 20 6d 61 70 73 20 74 |t handle|r maps t|
|00000c00| 68 65 20 72 61 77 20 6b | 65 79 63 6f 64 65 20 74 |he raw k|eycode t|
|00000c10| 6f 20 61 20 d2 76 69 72 | 74 75 61 6c d3 20 6b 65 |o a .vir|tual. ke|
|00000c20| 79 63 6f 64 65 20 2c 20 | 77 68 69 63 68 20 69 73 |ycode , |which is|
|00000c30| 20 74 68 65 6e 20 73 65 | 6e 74 20 74 6f 20 74 68 | then se|nt to th|
|00000c40| 65 20 5f 4b 65 79 54 72 | 61 6e 73 20 74 72 61 70 |e _KeyTr|ans trap|
|00000c50| 2e 20 20 54 68 69 73 20 | 74 72 61 70 20 6d 61 70 |. This |trap map|
|00000c60| 73 20 74 68 65 20 76 69 | 72 74 75 61 6c 20 6b 65 |s the vi|rtual ke|
|00000c70| 79 63 6f 64 65 20 74 6f | 20 61 6e 20 41 53 43 49 |ycode to| an ASCI|
|00000c80| 49 20 76 61 6c 75 65 20 | 28 75 73 69 6e 67 20 74 |I value |(using t|
|00000c90| 61 62 6c 65 73 20 77 68 | 69 63 68 20 72 65 73 69 |ables wh|ich resi|
|00000ca0| 64 65 20 69 6e 20 74 68 | 65 20 27 4b 43 48 52 27 |de in th|e 'KCHR'|
|00000cb0| 20 72 65 73 6f 75 72 63 | 65 20 6f 66 20 74 68 65 | resourc|e of the|
|00000cc0| 20 53 79 73 74 65 6d 20 | 66 69 6c 65 29 20 61 6e | System |file) an|
|00000cd0| 64 20 72 65 74 75 72 6e | 73 20 74 68 61 74 20 76 |d return|s that v|
|00000ce0| 61 6c 75 65 20 74 6f 20 | 74 68 65 20 68 61 6e 64 |alue to |the hand|
|00000cf0| 6c 65 72 20 77 68 69 63 | 68 20 70 6f 73 74 73 20 |ler whic|h posts |
|00000d00| 74 68 65 20 65 76 65 6e | 74 2e 0d 46 55 4e 43 54 |the even|t..FUNCT|
|00000d10| 49 4f 4e 20 4b 65 79 54 | 72 61 6e 73 28 74 72 61 |ION KeyT|rans(tra|
|00000d20| 6e 73 44 61 74 61 3a 50 | 74 72 3b 6b 65 79 63 6f |nsData:P|tr;keyco|
|00000d30| 64 65 3a 49 4e 54 45 47 | 45 52 3b 56 41 52 20 73 |de:INTEG|ER;VAR s|
|00000d40| 74 61 74 65 3a 20 4c 4f | 4e 47 49 4e 54 29 3a 4c |tate: LO|NGINT):L|
|00000d50| 4f 4e 47 49 4e 54 0d 54 | 68 65 20 74 72 61 6e 73 |ONGINT.T|he trans|
|00000d60| 44 61 74 61 20 70 61 72 | 61 6d 65 74 65 72 20 69 |Data par|ameter i|
|00000d70| 73 20 61 20 70 6f 69 6e | 74 65 72 20 74 6f 20 74 |s a poin|ter to t|
|00000d80| 68 65 20 27 4b 43 48 52 | 27 20 69 6d 61 67 65 20 |he 'KCHR|' image |
|00000d90| 69 6e 20 6d 65 6d 6f 72 | 79 2e 20 20 54 68 65 20 |in memor|y. The |
|00000da0| 6b 65 79 63 6f 64 65 20 | 70 61 72 61 6d 65 74 65 |keycode |paramete|
|00000db0| 72 20 69 73 20 61 6e 20 | 69 6e 74 65 67 65 72 20 |r is an |integer |
|00000dc0| 63 6f 6d 70 6f 73 65 64 | 20 6f 66 20 74 68 65 20 |composed| of the |
|00000dd0| 6d 6f 64 69 66 69 65 72 | 20 66 6c 61 67 73 20 69 |modifier| flags i|
|00000de0| 6e 20 62 69 74 73 20 38 | 2d 31 35 2c 20 61 6e 20 |n bits 8|-15, an |
|00000df0| 75 70 20 6f 72 20 64 6f | 77 6e 20 73 74 72 6f 6b |up or do|wn strok|
|00000e00| 65 20 66 6c 61 67 20 69 | 6e 20 62 69 74 20 37 20 |e flag i|n bit 7 |
|00000e10| 28 31 3d 75 70 29 2c 20 | 61 6e 64 20 74 68 65 20 |(1=up), |and the |
|00000e20| 76 69 72 74 75 61 6c 20 | 6b 65 79 20 63 6f 64 65 |virtual |key code|
|00000e30| 20 69 6e 20 62 69 74 73 | 20 36 2d 30 2e 20 20 54 | in bits| 6-0. T|
|00000e40| 68 65 20 73 74 61 74 65 | 20 70 61 72 61 6d 65 74 |he state| paramet|
|00000e50| 65 72 20 69 73 20 61 20 | 76 61 6c 75 65 20 69 6e |er is a |value in|
|00000e60| 74 65 72 6e 61 6c 20 74 | 6f 20 5f 4b 65 79 54 72 |ternal t|o _KeyTr|
|00000e70| 61 6e 73 20 77 68 69 63 | 68 20 73 68 6f 75 6c 64 |ans whic|h should|
|00000e80| 20 62 65 20 70 72 65 73 | 65 72 76 65 64 20 61 63 | be pres|erved ac|
|00000e90| 72 6f 73 73 20 63 61 6c | 6c 73 20 69 66 20 64 65 |ross cal|ls if de|
|00000ea0| 61 64 20 6b 65 79 73 20 | 61 72 65 20 64 65 73 69 |ad keys |are desi|
|00000eb0| 72 65 64 2e 20 20 49 74 | 20 69 73 20 64 65 70 65 |red. It| is depe|
|00000ec0| 6e 64 65 6e 74 20 6f 6e | 20 74 68 65 20 27 4b 43 |ndent on| the 'KC|
|00000ed0| 48 52 27 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 2c |HR' info|rmation,|
|00000ee0| 20 73 6f 20 69 66 20 74 | 68 65 20 27 4b 43 48 52 | so if t|he 'KCHR|
|00000ef0| 27 20 69 73 20 63 68 61 | 6e 67 65 64 2c 20 73 74 |' is cha|nged, st|
|00000f00| 61 74 65 20 73 68 6f 75 | 6c 64 20 62 65 20 72 65 |ate shou|ld be re|
|00000f10| 73 65 74 20 74 6f 20 7a | 65 72 6f 2e 0d 54 68 65 |set to z|ero..The|
|00000f20| 20 4c 4f 4e 47 49 4e 54 | 20 72 65 74 75 72 6e 65 | LONGINT| returne|
|00000f30| 64 20 69 73 20 61 63 74 | 75 61 6c 6c 79 20 74 77 |d is act|ually tw|
|00000f40| 6f 20 31 36 2d 62 69 74 | 20 63 68 61 72 61 63 74 |o 16-bit| charact|
|00000f50| 65 72 73 20 74 6f 20 62 | 65 20 70 6f 73 74 65 64 |ers to b|e posted|
|00000f60| 20 61 73 20 65 76 65 6e | 74 73 20 28 75 73 75 61 | as even|ts (usua|
|00000f70| 6c 6c 79 20 74 68 65 20 | 68 69 67 68 20 62 79 74 |lly the |high byt|
|00000f80| 65 20 6f 66 20 65 61 63 | 68 20 69 73 20 7a 65 72 |e of eac|h is zer|
|00000f90| 6f 29 2c 20 68 69 67 68 | 20 77 6f 72 64 20 66 69 |o), high| word fi|
|00000fa0| 72 73 74 2e 20 20 41 20 | 72 65 74 75 72 6e 65 64 |rst. A |returned|
|00000fb0| 20 76 61 6c 75 65 20 6f | 66 20 7a 65 72 6f 20 69 | value o|f zero i|
|00000fc0| 6e 20 65 69 74 68 65 72 | 20 77 6f 72 64 20 73 68 |n either| word sh|
|00000fd0| 6f 75 6c 64 20 6e 6f 74 | 20 62 65 20 70 6f 73 74 |ould not| be post|
|00000fe0| 65 64 2e 20 20 44 6f 20 | 6e 6f 74 20 64 65 70 65 |ed. Do |not depe|
|00000ff0| 6e 64 20 75 70 6f 6e 20 | 74 68 65 20 77 6f 72 64 |nd upon |the word|
|00001000| 20 69 6e 20 77 68 69 63 | 68 20 74 68 65 20 63 68 | in whic|h the ch|
|00001010| 61 72 61 63 74 65 72 20 | 69 73 20 72 65 74 75 72 |aracter |is retur|
|00001020| 6e 65 64 3b 20 69 66 20 | 62 6f 74 68 20 77 6f 72 |ned; if |both wor|
|00001030| 64 73 20 61 72 65 20 76 | 61 6c 69 64 2c 20 74 68 |ds are v|alid, th|
|00001040| 65 6e 20 74 68 65 20 68 | 69 67 68 20 77 6f 72 64 |en the h|igh word|
|00001050| 20 73 68 6f 75 6c 64 20 | 62 65 20 70 6f 73 74 65 | should |be poste|
|00001060| 64 20 66 69 72 73 74 2e | 0d 54 6f 20 72 65 6d 61 |d first.|.To rema|
|00001070| 70 20 74 68 65 20 6b 65 | 79 62 6f 61 72 64 2c 20 |p the ke|yboard, |
|00001080| 6f 6e 65 20 6d 75 73 74 | 20 73 75 70 70 6c 79 20 |one must| supply |
|00001090| 61 20 27 4b 43 48 52 27 | 20 72 65 73 6f 75 72 63 |a 'KCHR'| resourc|
|000010a0| 65 20 61 6e 64 20 68 61 | 76 65 20 74 68 65 20 53 |e and ha|ve the S|
|000010b0| 79 73 74 65 6d 20 75 73 | 65 20 69 74 2e 20 20 45 |ystem us|e it. E|
|000010c0| 61 63 68 20 27 4b 43 48 | 52 27 20 72 65 73 6f 75 |ach 'KCH|R' resou|
|000010d0| 72 63 65 20 68 61 73 20 | 61 6e 20 61 73 73 6f 63 |rce has |an assoc|
|000010e0| 69 61 74 65 64 20 27 53 | 49 43 4e 27 20 72 65 73 |iated 'S|ICN' res|
|000010f0| 6f 75 72 63 65 2e 20 20 | 54 68 65 20 27 53 49 43 |ource. |The 'SIC|
|00001100| 4e 27 20 72 65 73 6f 75 | 72 63 65 20 70 72 6f 76 |N' resou|rce prov|
|00001110| 69 64 65 73 20 61 20 67 | 72 61 70 68 69 63 20 72 |ides a g|raphic r|
|00001120| 65 70 72 65 73 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |epresent|ation of|
|00001130| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6b 65 79 | the cur|rent key|
|00001140| 62 6f 61 72 64 20 6d 61 | 70 70 69 6e 67 2e 20 46 |board ma|pping. F|
|00001150| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 74 68 65 20 |or examp|le, the |
|00001160| 46 72 65 6e 63 68 20 6b | 65 79 62 6f 61 72 64 20 |French k|eyboard |
|00001170| 6c 61 79 6f 75 74 20 68 | 61 73 20 61 20 27 53 49 |layout h|as a 'SI|
|00001180| 43 4e 27 20 6f 66 20 61 | 20 46 72 65 6e 63 68 20 |CN' of a| French |
|00001190| 66 6c 61 67 20 74 6f 20 | 64 65 73 69 67 6e 61 74 |flag to |designat|
|000011a0| 65 20 74 68 61 74 20 70 | 61 72 74 69 63 75 6c 61 |e that p|articula|
|000011b0| 72 20 6d 61 70 20 69 73 | 20 63 75 72 72 65 6e 74 |r map is| current|
|000011c0| 6c 79 20 61 63 74 69 76 | 65 2e 20 20 54 68 65 20 |ly activ|e. The |
|000011d0| 27 53 49 43 4e 27 20 72 | 65 73 6f 75 72 63 65 20 |'SICN' r|esource |
|000011e0| 73 68 6f 75 6c 64 20 62 | 65 20 73 6f 6d 65 20 72 |should b|e some r|
|000011f0| 65 70 72 65 73 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |epresent|ation of|
|00001200| 20 74 68 65 20 70 61 72 | 74 69 63 75 6c 61 72 20 | the par|ticular |
|00001210| 72 65 6d 61 70 2c 20 61 | 6e 64 20 69 74 73 20 49 |remap, a|nd its I|
|00001220| 44 20 6e 75 6d 62 65 72 | 20 6d 75 73 74 20 62 65 |D number| must be|
|00001230| 20 74 68 65 20 73 61 6d | 65 20 61 73 20 74 68 61 | the sam|e as tha|
|00001240| 74 20 6f 66 20 74 68 65 | 20 27 4b 43 48 52 27 2e |t of the| 'KCHR'.|
|00001250| 20 20 54 68 65 20 27 4b | 43 48 52 27 20 72 65 73 | The 'K|CHR' res|
|00001260| 6f 75 72 63 65 20 6d 75 | 73 74 20 62 65 20 6e 61 |ource mu|st be na|
|00001270| 6d 65 64 20 61 70 70 72 | 6f 70 72 69 61 74 65 6c |med appr|opriatel|
|00001280| 79 2c 20 61 73 20 69 74 | 20 63 61 6e 20 62 65 20 |y, as it| can be |
|00001290| 64 69 73 70 6c 61 79 65 | 64 20 69 6e 20 61 20 73 |displaye|d in a s|
|000012a0| 63 72 6f 6c 6c 69 6e 67 | 20 6c 69 73 74 20 69 6e |crolling| list in|
|000012b0| 20 74 68 65 20 4b 65 79 | 62 6f 61 72 64 20 43 6f | the Key|board Co|
|000012c0| 6e 74 72 6f 6c 20 50 61 | 6e 65 6c 2e 0d 4d 61 63 |ntrol Pa|nel..Mac|
|000012d0| 69 6e 74 6f 73 68 20 61 | 6e 64 20 4d 61 63 69 6e |intosh a|nd Macin|
|000012e0| 74 6f 73 68 20 50 6c 75 | 73 20 4b 65 79 62 6f 61 |tosh Plu|s Keyboa|
|000012f0| 72 64 73 0d 57 69 74 68 | 20 74 68 65 20 4d 61 63 |rds.With| the Mac|
|00001300| 69 6e 74 6f 73 68 20 28 | 74 68 65 20 6f 72 69 67 |intosh (|the orig|
|00001310| 69 6e 61 6c 20 6b 65 79 | 62 6f 61 72 64 20 6f 6e |inal key|board on|
|00001320| 20 74 68 65 20 31 32 38 | 4b 20 61 6e 64 20 35 31 | the 128|K and 51|
|00001330| 32 4b 20 4d 61 63 69 6e | 74 6f 73 68 65 73 29 20 |2K Macin|toshes) |
|00001340| 61 6e 64 20 4d 61 63 69 | 6e 74 6f 73 68 20 50 6c |and Maci|ntosh Pl|
|00001350| 75 73 20 6b 65 79 62 6f | 61 72 64 73 2c 20 74 68 |us keybo|ards, th|
|00001360| 65 20 65 76 65 6e 74 20 | 72 65 63 6f 72 64 20 63 |e event |record c|
|00001370| 6f 6e 74 61 69 6e 73 20 | 74 68 65 20 72 61 77 20 |ontains |the raw |
|00001380| 6b 65 79 63 6f 64 65 2c | 20 73 69 6e 63 65 20 74 |keycode,| since t|
|00001390| 68 65 72 65 20 69 73 20 | 6e 6f 20 27 4b 4d 41 50 |here is |no 'KMAP|
|000013a0| 27 20 6d 61 70 70 69 6e | 67 2e 20 20 46 6f 72 20 |' mappin|g. For |
|000013b0| 74 68 65 20 64 6f 6d 65 | 73 74 69 63 20 4d 61 63 |the dome|stic Mac|
|000013c0| 69 6e 74 6f 73 68 20 6b | 65 79 62 6f 61 72 64 20 |intosh k|eyboard |
|000013d0| 61 6e 64 20 74 68 65 20 | 4d 61 63 69 6e 74 6f 73 |and the |Macintos|
|000013e0| 68 20 50 6c 75 73 20 6b | 65 79 62 6f 61 72 64 2c |h Plus k|eyboard,|
|000013f0| 20 74 68 69 73 20 69 73 | 20 6e 6f 74 20 61 20 70 | this is| not a p|
|00001400| 72 6f 62 6c 65 6d 2c 20 | 73 69 6e 63 65 20 74 68 |roblem, |since th|
|00001410| 65 20 72 61 77 20 6b 65 | 79 63 6f 64 65 73 20 67 |e raw ke|ycodes g|
|00001420| 65 6e 65 72 61 74 65 64 | 20 62 79 20 74 68 6f 73 |enerated| by thos|
|00001430| 65 20 6b 65 79 62 6f 61 | 72 64 73 20 61 72 65 20 |e keyboa|rds are |
|00001440| 69 64 65 6e 74 69 63 61 | 6c 20 74 6f 20 74 68 65 |identica|l to the|
|00001450| 20 76 69 72 74 75 61 6c | 20 6b 65 79 63 6f 64 65 | virtual| keycode|
|00001460| 73 2e 20 20 54 68 69 73 | 20 69 73 20 6e 6f 74 20 |s. This| is not |
|00001470| 74 68 65 20 63 61 73 65 | 20 66 6f 72 20 74 68 65 |the case| for the|
|00001480| 20 4d 61 63 69 6e 74 6f | 73 68 20 69 6e 74 65 72 | Macinto|sh inter|
|00001490| 6e 61 74 69 6f 6e 61 6c | 20 6b 65 79 62 6f 61 72 |national| keyboar|
|000014a0| 64 2c 20 77 68 69 63 68 | 20 69 73 20 73 74 69 6c |d, which| is stil|
|000014b0| 6c 20 75 73 65 64 20 77 | 69 74 68 20 74 68 65 20 |l used w|ith the |
|000014c0| 4d 61 63 69 6e 74 6f 73 | 68 20 50 6c 75 73 20 6f |Macintos|h Plus o|
|000014d0| 6e 20 6d 61 6e 79 20 69 | 6e 74 65 72 6e 61 74 69 |n many i|nternati|
|000014e0| 6f 6e 61 6c 20 73 79 73 | 74 65 6d 73 2e 20 20 46 |onal sys|tems. F|
|000014f0| 6f 72 20 74 68 69 73 20 | 6b 65 79 62 6f 61 72 64 |or this |keyboard|
|00001500| 2c 20 74 68 65 20 65 76 | 65 6e 74 20 72 65 63 6f |, the ev|ent reco|
|00001510| 72 64 20 63 6f 6e 74 61 | 69 6e 73 20 61 20 72 61 |rd conta|ins a ra|
|00001520| 77 20 6b 65 79 63 6f 64 | 65 20 77 68 69 63 68 20 |w keycod|e which |
|00001530| 63 61 6e 20 6e 6f 74 20 | 62 65 20 74 72 65 61 74 |can not |be treat|
|00001540| 65 64 20 61 73 20 61 20 | 76 69 72 74 75 61 6c 20 |ed as a |virtual |
|00001550| 6b 65 79 63 6f 64 65 2e | 0d 49 66 20 79 6f 75 20 |keycode.|.If you |
|00001560| 6e 65 65 64 20 74 6f 20 | 6f 62 74 61 69 6e 20 76 |need to |obtain v|
|00001570| 69 72 74 75 61 6c 20 6b | 65 79 63 6f 64 65 73 20 |irtual k|eycodes |
|00001580| 66 6f 72 20 74 68 65 20 | 4d 61 63 69 6e 74 6f 73 |for the |Macintos|
|00001590| 68 20 69 6e 74 65 72 6e | 61 74 69 6f 6e 61 6c 20 |h intern|ational |
|000015a0| 6b 65 79 62 6f 61 72 64 | 2c 20 79 6f 75 20 6e 65 |keyboard|, you ne|
|000015b0| 65 64 20 74 6f 20 6d 61 | 70 20 74 68 65 20 72 61 |ed to ma|p the ra|
|000015c0| 77 20 6b 65 79 63 6f 64 | 65 20 69 6e 20 74 68 65 |w keycod|e in the|
|000015d0| 20 65 76 65 6e 74 20 72 | 65 63 6f 72 64 20 74 6f | event r|ecord to|
|000015e0| 20 61 20 76 69 72 74 75 | 61 6c 20 6b 65 79 63 6f | a virtu|al keyco|
|000015f0| 64 65 2e 20 20 54 68 65 | 20 66 6f 6c 6c 6f 77 69 |de. The| followi|
|00001600| 6e 67 20 74 61 62 6c 65 | 20 70 72 6f 76 69 64 65 |ng table| provide|
|00001610| 73 20 74 68 65 20 6e 65 | 63 65 73 73 61 72 79 20 |s the ne|cessary |
|00001620| 6d 61 70 70 69 6e 67 20 | 28 74 68 65 20 72 61 77 |mapping |(the raw|
|00001630| 20 6b 65 79 63 6f 64 65 | 73 20 67 65 6e 65 72 61 | keycode|s genera|
|00001640| 74 65 64 20 62 79 20 74 | 68 69 73 20 6b 65 79 62 |ted by t|his keyb|
|00001650| 6f 61 72 64 20 61 72 65 | 20 69 6e 20 74 68 65 20 |oard are| in the |
|00001660| 72 61 6e 67 65 20 24 30 | 30 2d 24 33 46 3b 20 6b |range $0|0-$3F; k|
|00001670| 65 79 63 6f 64 65 73 20 | 61 62 6f 76 65 20 74 68 |eycodes |above th|
|00001680| 69 73 20 61 72 65 20 67 | 65 6e 65 72 61 74 65 64 |is are g|enerated|
|00001690| 20 62 79 20 74 68 65 20 | 6f 70 74 69 6f 6e 61 6c | by the |optional|
|000016a0| 20 6b 65 79 70 61 64 20 | 74 68 61 74 20 6d 61 79 | keypad |that may|
|000016b0| 20 62 65 20 75 73 65 64 | 20 77 69 74 68 20 74 68 | be used| with th|
|000016c0| 69 73 20 6b 65 79 62 6f | 61 72 64 29 2e 20 20 49 |is keybo|ard). I|
|000016d0| 66 20 74 68 65 20 72 61 | 77 20 6b 65 79 63 6f 64 |f the ra|w keycod|
|000016e0| 65 20 69 73 20 75 73 65 | 64 20 61 73 20 61 6e 20 |e is use|d as an |
|000016f0| 6f 66 66 73 65 74 20 69 | 6e 74 6f 20 74 68 69 73 |offset i|nto this|
|00001700| 20 74 61 62 6c 65 2c 20 | 74 68 65 20 62 79 74 65 | table, |the byte|
|00001710| 20 61 74 20 74 68 61 74 | 20 6f 66 66 73 65 74 20 | at that| offset |
|00001720| 69 73 20 74 68 65 20 76 | 69 72 74 75 61 6c 20 6b |is the v|irtual k|
|00001730| 65 79 63 6f 64 65 2e 20 | 20 54 68 69 73 20 6d 61 |eycode. | This ma|
|00001740| 70 70 69 6e 67 20 69 73 | 20 61 6c 73 6f 20 70 65 |pping is| also pe|
|00001750| 72 66 6f 72 6d 65 64 20 | 62 79 20 74 68 65 20 5f |rformed |by the _|
|00001760| 4b 65 79 31 54 72 61 6e | 73 20 68 6f 6f 6b 20 62 |Key1Tran|s hook b|
|00001770| 65 66 6f 72 65 20 69 74 | 20 63 61 6c 6c 73 20 5f |efore it| calls _|
|00001780| 4b 65 79 54 72 61 6e 73 | 2c 20 69 66 20 74 68 65 |KeyTrans|, if the|
|00001790| 20 6b 65 79 62 6f 61 72 | 64 20 69 73 20 61 20 4d | keyboar|d is a M|
|000017a0| 61 63 69 6e 74 6f 73 68 | 20 69 6e 74 65 72 6e 61 |acintosh| interna|
|000017b0| 74 69 6f 6e 61 6c 20 74 | 79 70 65 2e 0d 20 20 20 |tional t|ype.. |
|000017c0| 20 6f 6c 64 49 6e 74 6c | 4b 65 79 62 64 52 61 77 | oldIntl|KeybdRaw|
|000017d0| 54 6f 56 69 72 74 75 61 | 6c 20 20 20 20 20 20 20 |ToVirtua|l |
|000017e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000017f0| 20 20 20 20 20 20 20 20 | 3b 20 72 61 77 20 6b 65 | |; raw ke|
|00001800| 79 63 6f 64 65 3a 0d 20 | 20 20 20 20 20 20 20 20 |ycode:. | |
|00001810| 20 20 20 64 63 2e 62 20 | 20 24 30 30 2c 20 24 30 | dc.b | $00, $0|
|00001820| 31 2c 20 24 30 32 2c 20 | 24 30 33 2c 20 24 30 34 |1, $02, |$03, $04|
|00001830| 2c 20 24 30 35 2c 20 24 | 33 32 2c 20 24 30 36 20 |, $05, $|32, $06 |
|00001840| 20 20 3b 20 24 30 30 20 | 2e 2e 20 24 30 37 0d 20 | ; $00 |.. $07. |
|00001850| 20 20 20 20 20 20 20 20 | 20 20 20 64 63 2e 62 20 | | dc.b |
|00001860| 20 24 30 37 2c 20 24 30 | 38 2c 20 24 32 63 2c 20 | $07, $0|8, $2c, |
|00001870| 24 30 39 2c 20 24 30 63 | 2c 20 24 30 64 2c 20 24 |$09, $0c|, $0d, $|
|00001880| 30 65 2c 20 24 30 66 20 | 20 20 3b 20 24 30 38 20 |0e, $0f | ; $08 |
|00001890| 2e 2e 20 24 30 66 0d 20 | 20 20 20 20 20 20 20 20 |.. $0f. | |
|000018a0| 20 20 20 64 63 2e 62 20 | 20 24 31 30 2c 20 24 31 | dc.b | $10, $1|
|000018b0| 31 2c 20 24 31 32 2c 20 | 24 31 33 2c 20 24 31 34 |1, $12, |$13, $14|
|000018c0| 2c 20 24 31 35 2c 20 24 | 31 36 2c 20 24 31 37 20 |, $15, $|16, $17 |
|000018d0| 20 20 3b 20 24 31 30 20 | 2e 2e 20 24 31 37 0d 20 | ; $10 |.. $17. |
|000018e0| 20 20 20 20 20 20 20 20 | 20 20 20 64 63 2e 62 20 | | dc.b |
|000018f0| 20 24 31 38 2c 20 24 31 | 39 2c 20 24 31 61 2c 20 | $18, $1|9, $1a, |
|00001900| 24 31 62 2c 20 24 31 63 | 2c 20 24 31 64 2c 20 24 |$1b, $1c|, $1d, $|
|00001910| 31 65 2c 20 24 31 66 20 | 20 20 3b 20 24 31 38 20 |1e, $1f | ; $18 |
|00001920| 2e 2e 20 24 31 66 0d 20 | 20 20 20 20 20 20 20 20 |.. $1f. | |
|00001930| 20 20 20 64 63 2e 62 20 | 20 24 32 30 2c 20 24 32 | dc.b | $20, $2|
|00001940| 31 2c 20 24 32 32 2c 20 | 24 32 33 2c 20 24 32 61 |1, $22, |$23, $2a|
|00001950| 2c 20 24 32 35 2c 20 24 | 32 36 2c 20 24 32 37 20 |, $25, $|26, $27 |
|00001960| 20 20 3b 20 24 32 30 20 | 2e 2e 20 24 32 37 0d 20 | ; $20 |.. $27. |
|00001970| 20 20 20 20 20 20 20 20 | 20 20 20 64 63 2e 62 20 | | dc.b |
|00001980| 20 24 32 38 2c 20 24 32 | 39 2c 20 24 32 34 2c 20 | $28, $2|9, $24, |
|00001990| 24 32 65 2c 20 24 32 66 | 2c 20 24 30 62 2c 20 24 |$2e, $2f|, $0b, $|
|000019a0| 32 64 2c 20 24 32 62 20 | 20 20 3b 20 24 32 38 20 |2d, $2b | ; $28 |
|000019b0| 2e 2e 20 24 32 66 0d 20 | 20 20 20 20 20 20 20 20 |.. $2f. | |
|000019c0| 20 20 20 64 63 2e 62 20 | 20 24 33 30 2c 20 24 33 | dc.b | $30, $3|
|000019d0| 34 2c 20 24 30 61 2c 20 | 24 33 33 2c 20 24 33 31 |4, $0a, |$33, $31|
|000019e0| 2c 20 24 33 35 2c 20 24 | 33 36 2c 20 24 33 37 20 |, $35, $|36, $37 |
|000019f0| 20 20 3b 20 24 33 30 20 | 2e 2e 20 24 33 37 0d 20 | ; $30 |.. $37. |
|00001a00| 20 20 20 20 20 20 20 20 | 20 20 20 64 63 2e 62 20 | | dc.b |
|00001a10| 20 24 33 38 2c 20 24 33 | 39 2c 20 24 33 61 2c 20 | $38, $3|9, $3a, |
|00001a20| 24 33 62 2c 20 24 33 63 | 2c 20 24 33 64 2c 20 24 |$3b, $3c|, $3d, $|
|00001a30| 33 65 2c 20 24 33 66 20 | 20 20 3b 20 24 33 38 20 |3e, $3f | ; $38 |
|00001a40| 2e 2e 20 24 33 66 0d 54 | 68 65 20 67 6c 6f 62 61 |.. $3f.T|he globa|
|00001a50| 6c 20 76 61 72 69 61 62 | 6c 65 20 4b 62 64 54 79 |l variab|le KbdTy|
|00001a60| 70 65 20 28 61 20 62 79 | 74 65 29 20 63 6f 6e 74 |pe (a by|te) cont|
|00001a70| 61 69 6e 73 20 74 68 65 | 20 74 79 70 65 20 6f 66 |ains the| type of|
|00001a80| 20 74 68 65 20 6c 61 73 | 74 20 6b 65 79 62 6f 61 | the las|t keyboa|
|00001a90| 72 64 20 75 73 65 64 2e | 20 20 54 68 65 20 66 6f |rd used.| The fo|
|00001aa0| 6c 6c 6f 77 69 6e 67 20 | 74 61 62 6c 65 20 73 68 |llowing |table sh|
|00001ab0| 6f 77 73 20 74 68 65 20 | 76 61 6c 75 65 73 20 6f |ows the |values o|
|00001ac0| 66 20 74 68 65 20 67 6c | 6f 62 61 6c 20 76 61 72 |f the gl|obal var|
|00001ad0| 69 61 62 6c 65 20 4b 62 | 64 54 79 70 65 20 66 6f |iable Kb|dType fo|
|00001ae0| 72 20 74 68 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 |r the Ma|cintosh |
|00001af0| 61 6e 64 20 4d 61 63 69 | 6e 74 6f 73 68 20 50 6c |and Maci|ntosh Pl|
|00001b00| 75 73 20 6b 65 79 62 6f | 61 72 64 73 3a 0d 4b 62 |us keybo|ards:.Kb|
|00001b10| 64 54 79 70 65 09 4b 65 | 79 62 6f 61 72 64 20 54 |dType.Ke|yboard T|
|00001b20| 79 70 65 0d 09 24 30 33 | 09 4d 61 63 69 6e 74 6f |ype..$03|.Macinto|
|00001b30| 73 68 20 28 64 6f 6d 65 | 73 74 69 63 20 6f 72 20 |sh (dome|stic or |
|00001b40| 69 6e 74 65 72 6e 61 74 | 69 6f 6e 61 6c 29 0d 09 |internat|ional)..|
|00001b50| 24 30 42 09 4d 61 63 69 | 6e 74 6f 73 68 20 50 6c |$0B.Maci|ntosh Pl|
|00001b60| 75 73 0d 46 6f 72 20 62 | 6f 74 68 20 74 68 65 20 |us.For b|oth the |
|00001b70| 4d 61 63 69 6e 74 6f 73 | 68 20 64 6f 6d 65 73 74 |Macintos|h domest|
|00001b80| 69 63 20 61 6e 64 20 69 | 6e 74 65 72 6e 61 74 69 |ic and i|nternati|
|00001b90| 6f 6e 61 6c 20 6b 65 79 | 62 6f 61 72 64 73 2c 20 |onal key|boards, |
|00001ba0| 74 68 65 20 67 6c 6f 62 | 61 6c 20 76 61 72 69 61 |the glob|al varia|
|00001bb0| 62 6c 65 20 4b 62 64 54 | 79 70 65 20 69 73 20 33 |ble KbdT|ype is 3|
|00001bc0| 2e 20 20 54 68 65 20 4d | 61 63 69 6e 74 6f 73 68 |. The M|acintosh|
|00001bd0| 20 68 61 73 20 6e 6f 20 | 77 61 79 20 74 6f 20 64 | has no |way to d|
|00001be0| 69 73 74 69 6e 67 75 69 | 73 68 20 62 65 74 77 65 |istingui|sh betwe|
|00001bf0| 65 6e 20 74 68 65 73 65 | 20 74 77 6f 20 6b 65 79 |en these| two key|
|00001c00| 62 6f 61 72 64 73 2c 20 | 61 6e 64 20 6d 75 73 74 |boards, |and must|
|00001c10| 20 72 65 6c 79 20 6f 6e | 20 74 68 65 20 75 73 65 | rely on| the use|
|00001c20| 72 20 74 6f 20 69 6e 64 | 69 63 61 74 65 20 77 68 |r to ind|icate wh|
|00001c30| 69 63 68 20 6b 65 79 62 | 6f 61 72 64 20 69 73 20 |ich keyb|oard is |
|00001c40| 62 65 69 6e 67 20 75 73 | 65 64 20 62 79 20 63 6c |being us|ed by cl|
|00001c50| 69 63 6b 69 6e 67 20 6f | 6e 20 74 68 65 20 61 70 |icking o|n the ap|
|00001c60| 70 72 6f 70 72 69 61 74 | 65 20 70 69 63 74 75 72 |propriat|e pictur|
|00001c70| 65 20 69 6e 20 61 20 70 | 61 6e 65 6c 20 69 6e 20 |e in a p|anel in |
|00001c80| 74 68 65 20 4b 65 79 62 | 6f 61 72 64 20 43 64 65 |the Keyb|oard Cde|
|00001c90| 76 20 28 74 68 69 73 20 | 70 61 6e 65 6c 20 6f 6e |v (this |panel on|
|00001ca0| 6c 79 20 61 70 70 65 61 | 72 73 20 6f 6e 20 6e 6f |ly appea|rs on no|
|00001cb0| 6e 2d 41 44 42 20 4d 61 | 63 69 6e 74 6f 73 68 65 |n-ADB Ma|cintoshe|
|00001cc0| 73 29 2e 20 20 41 20 62 | 79 74 65 20 66 6c 61 67 |s). A b|yte flag|
|00001cd0| 20 69 6e 20 74 68 65 20 | 27 69 74 6c 63 27 20 72 | in the |'itlc' r|
|00001ce0| 65 73 6f 75 72 63 65 20 | 49 44 20 3d 20 30 20 69 |esource |ID = 0 i|
|00001cf0| 6e 64 69 63 61 74 65 73 | 20 77 68 69 63 68 20 6b |ndicates| which k|
|00001d00| 65 79 62 6f 61 72 64 20 | 74 68 65 20 75 73 65 72 |eyboard |the user|
|00001d10| 20 68 61 73 20 73 70 65 | 63 69 66 69 65 64 2e 20 | has spe|cified. |
|00001d20| 20 49 66 20 74 68 65 20 | 4b 62 64 54 79 70 65 20 | If the |KbdType |
|00001d30| 67 6c 6f 62 61 6c 20 63 | 6f 6e 74 61 69 6e 73 20 |global c|ontains |
|00001d40| 33 2c 20 79 6f 75 20 63 | 61 6e 20 74 65 73 74 20 |3, you c|an test |
|00001d50| 74 68 69 73 20 66 6c 61 | 67 20 74 6f 20 64 65 74 |this fla|g to det|
|00001d60| 65 72 6d 69 6e 65 20 69 | 66 20 74 68 65 20 69 6e |ermine i|f the in|
|00001d70| 74 65 72 6e 61 74 69 6f | 6e 61 6c 20 76 65 72 73 |ternatio|nal vers|
|00001d80| 69 6f 6e 20 6f 66 20 74 | 68 65 20 6b 65 79 62 6f |ion of t|he keybo|
|00001d90| 61 72 64 20 69 73 20 62 | 65 69 6e 67 20 75 73 65 |ard is b|eing use|
|00001da0| 64 20 28 66 6f 6c 6c 6f | 77 69 6e 67 20 69 73 20 |d (follo|wing is |
|00001db0| 74 68 65 20 61 73 73 65 | 6d 62 6c 79 2d 6c 61 6e |the asse|mbly-lan|
|00001dc0| 67 75 61 67 65 20 76 65 | 72 73 69 6f 6e 29 3a 0d |guage ve|rsion):.|
|00001dd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 77 69 74 68 | | with|
|00001de0| 20 20 20 20 20 20 49 74 | 6c 63 52 65 63 6f 72 64 | It|lcRecord|
|00001df0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 73 75 62 |. | sub|
|00001e00| 71 20 20 20 20 20 20 23 | 34 2c 73 70 20 20 20 20 |q #|4,sp |
|00001e10| 20 20 20 20 20 20 20 20 | 20 20 3b 20 73 70 61 63 | | ; spac|
|00001e20| 65 20 66 6f 72 20 72 65 | 74 75 72 6e 65 64 20 68 |e for re|turned h|
|00001e30| 61 6e 64 6c 65 0d 20 20 | 20 20 20 20 20 20 20 20 |andle. | |
|00001e40| 20 20 6d 6f 76 65 2e 6c | 20 20 20 20 23 27 69 74 | move.l| #'it|
|00001e50| 6c 63 27 2c 2d 28 73 70 | 29 20 20 20 20 20 20 3b |lc',-(sp|) ;|
|00001e60| 20 70 75 73 68 20 69 74 | 6c 63 20 74 79 70 65 0d | push it|lc type.|
|00001e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 6c 72 2e | | clr.|
|00001e80| 77 20 20 20 20 20 2d 28 | 73 70 29 20 20 20 20 20 |w -(|sp) |
|00001e90| 20 20 20 20 20 20 20 20 | 20 3b 20 77 61 6e 74 20 | | ; want |
|00001ea0| 49 44 3d 30 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ID=0. | |
|00001eb0| 20 5f 47 65 74 52 65 73 | 6f 75 72 63 65 20 20 20 | _GetRes|ource |
|00001ec0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3b 20 | | ; |
|00001ed0| 67 65 74 20 74 68 65 20 | 69 74 6c 63 20 72 65 73 |get the |itlc res|
|00001ee0| 6f 75 72 63 65 0d 20 20 | 20 20 20 20 20 20 20 20 |ource. | |
|00001ef0| 20 20 6d 6f 76 65 2e 6c | 20 20 20 20 28 73 70 29 | move.l| (sp)|
|00001f00| 2b 2c 64 30 20 20 20 20 | 20 20 20 20 20 20 20 3b |+,d0 | ;|
|00001f10| 20 64 69 64 20 77 65 20 | 67 65 74 20 69 74 3f 0d | did we |get it?.|
|00001f20| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 65 71 20 | | beq |
|00001f30| 20 20 20 20 20 20 6d 79 | 45 72 72 6f 72 48 61 6e | my|ErrorHan|
|00001f40| 64 6c 69 6e 67 20 20 20 | 20 3b 20 69 66 20 6e 6f |dling | ; if no|
|00001f50| 74 2c 20 62 61 69 6c 0d | 20 20 20 20 20 20 20 20 |t, bail.| |
|00001f60| 20 20 20 20 6d 6f 76 65 | 2e 6c 20 20 20 20 64 30 | move|.l d0|
|00001f70| 2c 61 30 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,a0 | |
|00001f80| 20 3b 20 63 6f 70 79 20 | 68 61 6e 64 6c 65 0d 20 | ; copy |handle. |
|00001f90| 20 20 20 20 20 20 20 20 | 20 20 20 6d 6f 76 65 2e | | move.|
|00001fa0| 6c 20 20 20 20 28 61 30 | 29 2c 61 30 20 20 20 20 |l (a0|),a0 |
|00001fb0| 20 20 20 20 20 20 20 20 | 3b 20 67 65 74 20 70 6f | |; get po|
|00001fc0| 69 6e 74 65 72 0d 20 20 | 20 20 20 20 20 20 20 20 |inter. | |
|00001fd0| 20 20 74 73 74 2e 62 20 | 20 20 20 20 69 74 6c 63 | tst.b | itlc|
|00001fe0| 4f 6c 64 4b 79 62 64 28 | 61 30 29 20 20 20 20 3b |OldKybd(|a0) ;|
|00001ff0| 20 63 68 65 63 6b 20 66 | 6c 61 67 0d 20 20 20 20 | check f|lag. |
|00002000| 20 20 20 20 20 20 20 20 | 65 6e 64 77 69 74 68 20 | |endwith |
|00002010| 20 3b 49 74 6c 63 52 65 | 63 6f 72 64 0d 20 20 20 | ;ItlcRe|cord. |
|00002020| 20 20 20 20 20 20 20 20 | 20 3b 20 69 66 20 6e 6f | | ; if no|
|00002030| 6e 2d 7a 65 72 6f 2c 20 | 69 6e 74 65 72 6e 61 74 |n-zero, |internat|
|00002040| 69 6f 6e 61 6c 20 6b 65 | 79 62 6f 61 72 64 20 69 |ional ke|yboard i|
|00002050| 73 20 62 65 69 6e 67 20 | 75 73 65 64 0d 48 61 72 |s being |used.Har|
|00002060| 64 77 61 72 65 20 44 65 | 70 65 6e 64 65 6e 63 69 |dware De|pendenci|
|00002070| 65 73 0d 41 6c 74 68 6f | 75 67 68 20 74 68 65 20 |es.Altho|ugh the |
|00002080| 70 72 69 6e 63 69 70 6c | 65 20 75 6e 64 65 72 6c |principl|e underl|
|00002090| 79 69 6e 67 20 76 69 72 | 74 75 61 6c 20 6b 65 79 |ying vir|tual key|
|000020a0| 63 6f 64 65 73 20 69 73 | 20 74 6f 20 68 61 76 65 |codes is| to have|
|000020b0| 20 61 20 73 74 61 6e 64 | 61 72 64 20 6b 65 79 63 | a stand|ard keyc|
|000020c0| 6f 64 65 20 66 6f 72 20 | 61 20 63 68 61 72 61 63 |ode for |a charac|
|000020d0| 74 65 72 20 72 65 67 61 | 72 64 6c 65 73 73 20 6f |ter rega|rdless o|
|000020e0| 66 20 74 68 65 20 61 63 | 74 75 61 6c 20 6b 65 79 |f the ac|tual key|
|000020f0| 62 6f 61 72 64 20 75 73 | 65 64 2c 20 73 6f 6d 65 |board us|ed, some|
|00002100| 20 68 61 72 64 77 61 72 | 65 20 64 65 70 65 6e 64 | hardwar|e depend|
|00002110| 65 6e 74 20 64 69 66 66 | 65 72 65 6e 63 65 73 20 |ent diff|erences |
|00002120| 61 72 65 20 73 74 69 6c | 6c 20 70 72 65 73 65 6e |are stil|l presen|
|00002130| 74 2c 20 61 6e 64 20 63 | 6f 76 65 72 65 64 20 69 |t, and c|overed i|
|00002140| 6e 20 74 68 69 73 20 73 | 65 63 74 69 6f 6e 2e 0d |n this s|ection..|
|00002150| a5 09 54 68 65 20 76 69 | 72 74 75 61 6c 20 6b 65 |..The vi|rtual ke|
|00002160| 79 63 6f 64 65 73 20 66 | 6f 72 20 74 68 65 20 63 |ycodes f|or the c|
|00002170| 75 72 73 6f 72 20 6b 65 | 79 73 20 61 6e 64 20 66 |ursor ke|ys and f|
|00002180| 6f 72 20 73 6f 6d 65 20 | 6b 65 79 70 61 64 20 6f |or some |keypad o|
|00002190| 70 65 72 61 74 6f 72 20 | 6b 65 79 73 20 61 72 65 |perator |keys are|
|000021a0| 20 64 69 66 66 65 72 65 | 6e 74 20 6f 6e 20 74 68 | differe|nt on th|
|000021b0| 65 20 41 44 42 20 6b 65 | 79 62 6f 61 72 64 73 20 |e ADB ke|yboards |
|000021c0| 61 6e 64 20 74 68 65 20 | 6e 6f 6e 2d 41 44 42 20 |and the |non-ADB |
|000021d0| 6b 65 79 62 6f 61 72 64 | 73 3a 0d 4b 65 79 20 44 |keyboard|s:.Key D|
|000021e0| 65 73 63 72 69 70 74 69 | 6f 6e 09 41 44 42 20 4b |escripti|on.ADB K|
|000021f0| 65 79 63 6f 64 65 09 4e | 6f 6e 2d 41 44 42 20 4b |eycode.N|on-ADB K|
|00002200| 65 79 63 6f 64 65 0d 6c | 65 66 74 20 61 72 72 6f |eycode.l|eft arro|
|00002210| 77 09 24 37 42 09 24 34 | 36 0d 72 69 67 68 74 20 |w.$7B.$4|6.right |
|00002220| 61 72 72 6f 77 09 24 37 | 43 09 24 34 32 0d 64 6f |arrow.$7|C.$42.do|
|00002230| 77 6e 20 61 72 72 6f 77 | 09 24 37 44 09 24 34 38 |wn arrow|.$7D.$48|
|00002240| 0d 75 70 20 61 72 72 6f | 77 09 24 37 45 09 24 34 |.up arro|w.$7E.$4|
|00002250| 44 0d 6b 65 79 70 61 64 | 20 70 6c 75 73 20 73 69 |D.keypad| plus si|
|00002260| 67 6e 20 28 2b 29 09 24 | 34 35 09 24 34 36 20 28 |gn (+).$|45.$46 (|
|00002270| 77 69 74 68 20 53 68 69 | 66 74 20 62 69 74 20 73 |with Shi|ft bit s|
|00002280| 65 74 20 69 6e 20 6d 6f | 64 69 66 69 65 72 73 29 |et in mo|difiers)|
|00002290| 0d 6b 65 79 70 61 64 20 | 61 73 74 65 72 69 73 6b |.keypad |asterisk|
|000022a0| 20 28 2a 29 09 24 34 33 | 09 24 34 32 20 28 77 69 | (*).$43|.$42 (wi|
|000022b0| 74 68 20 53 68 69 66 74 | 20 62 69 74 20 73 65 74 |th Shift| bit set|
|000022c0| 20 69 6e 20 6d 6f 64 69 | 66 69 65 72 73 29 0d 6b | in modi|fiers).k|
|000022d0| 65 79 70 61 64 20 65 71 | 75 61 6c 20 73 69 67 6e |eypad eq|ual sign|
|000022e0| 20 28 3d 29 09 24 35 31 | 09 24 34 38 20 28 77 69 | (=).$51|.$48 (wi|
|000022f0| 74 68 20 53 68 69 66 74 | 20 62 69 74 20 73 65 74 |th Shift| bit set|
|00002300| 20 69 6e 20 6d 6f 64 69 | 66 69 65 72 73 29 0d 6b | in modi|fiers).k|
|00002310| 65 79 70 61 64 20 73 6c | 61 73 68 20 28 2f 29 09 |eypad sl|ash (/).|
|00002320| 24 34 42 09 24 34 44 20 | 28 77 69 74 68 20 53 68 |$4B.$4D |(with Sh|
|00002330| 69 66 74 20 62 69 74 20 | 73 65 74 20 69 6e 20 6d |ift bit |set in m|
|00002340| 6f 64 69 66 69 65 72 73 | 29 0d 4e 6f 74 69 63 65 |odifiers|).Notice|
|00002350| 20 74 68 61 74 20 6f 6e | 20 6e 6f 6e 2d 41 44 42 | that on| non-ADB|
|00002360| 20 6b 65 79 62 6f 61 72 | 64 73 2c 20 74 68 65 20 | keyboar|ds, the |
|00002370| 6b 65 79 63 6f 64 65 73 | 20 66 6f 72 20 74 68 65 |keycodes| for the|
|00002380| 20 6b 65 79 70 61 64 20 | 6f 70 65 72 61 74 6f 72 | keypad |operator|
|00002390| 73 20 6c 69 73 74 65 64 | 20 64 75 70 6c 69 63 61 |s listed| duplica|
|000023a0| 74 65 20 74 68 65 20 6b | 65 79 63 6f 64 65 73 20 |te the k|eycodes |
|000023b0| 66 6f 72 20 74 68 65 20 | 63 75 72 73 6f 72 20 6b |for the |cursor k|
|000023c0| 65 79 73 2e 20 20 4f 6e | 20 74 68 65 73 65 20 6b |eys. On| these k|
|000023d0| 65 79 62 6f 61 72 64 73 | 2c 20 68 6f 6c 64 69 6e |eyboards|, holdin|
|000023e0| 67 20 53 68 69 66 74 20 | 61 6e 64 20 70 72 65 73 |g Shift |and pres|
|000023f0| 73 69 6e 67 20 4c 65 66 | 74 20 41 72 72 6f 77 20 |sing Lef|t Arrow |
|00002400| 70 72 6f 64 75 63 65 20 | 74 68 65 20 70 6c 75 73 |produce |the plus|
|00002410| 20 73 69 67 6e 20 63 68 | 61 72 61 63 74 65 72 20 | sign ch|aracter |
|00002420| 28 2b 29 2c 20 66 6f 72 | 20 65 78 61 6d 70 6c 65 |(+), for| example|
|00002430| 2e 0d a5 09 54 68 65 20 | 4d 61 63 69 6e 74 6f 73 |....The |Macintos|
|00002440| 68 20 49 6e 74 65 72 6e | 61 74 69 6f 6e 61 6c 20 |h Intern|ational |
|00002450| 6b 65 79 62 6f 61 72 64 | 20 61 6e 64 20 74 68 65 |keyboard| and the|
|00002460| 20 49 53 4f 20 41 44 42 | 20 6b 65 79 62 6f 61 72 | ISO ADB| keyboar|
|00002470| 64 73 20 68 61 76 65 20 | 61 6e 20 65 78 74 72 61 |ds have |an extra|
|00002480| 20 6b 65 79 20 74 68 61 | 74 20 69 73 20 6e 6f 74 | key tha|t is not|
|00002490| 20 70 72 65 73 65 6e 74 | 20 6f 6e 20 74 68 65 20 | present| on the |
|000024a0| 64 6f 6d 65 73 74 69 63 | 20 6b 65 79 62 6f 61 72 |domestic| keyboar|
|000024b0| 64 73 2e 20 20 54 68 69 | 73 20 6b 65 79 20 70 72 |ds. Thi|s key pr|
|000024c0| 6f 64 75 63 65 73 20 76 | 69 72 74 75 61 6c 20 6b |oduces v|irtual k|
|000024d0| 65 79 63 6f 64 65 20 24 | 30 41 2e 0d a5 09 49 74 |eycode $|0A....It|
|000024e0| 20 69 73 20 70 6f 73 73 | 69 62 6c 65 20 74 6f 20 | is poss|ible to |
|000024f0| 72 65 61 73 73 69 67 6e | 20 74 68 65 20 76 69 72 |reassign| the vir|
|00002500| 74 75 61 6c 20 6b 65 79 | 63 6f 64 65 73 20 66 6f |tual key|codes fo|
|00002510| 72 20 74 68 65 20 53 68 | 69 66 74 2c 20 4f 70 74 |r the Sh|ift, Opt|
|00002520| 69 6f 6e 2c 20 61 6e 64 | 20 43 6f 6e 74 72 6f 6c |ion, and| Control|
|00002530| 20 6b 65 79 73 20 6f 6e | 20 74 68 65 20 72 69 67 | keys on| the rig|
|00002540| 68 74 20 73 69 64 65 20 | 6f 66 20 74 68 65 20 41 |ht side |of the A|
|00002550| 44 42 20 45 78 74 65 6e | 64 65 64 20 6b 65 79 62 |DB Exten|ded keyb|
|00002560| 6f 61 72 64 73 2e 20 20 | 50 6c 65 61 73 65 20 72 |oards. |Please r|
|00002570| 65 66 65 72 20 74 6f 20 | 49 6e 73 69 64 65 20 4d |efer to |Inside M|
|00002580| 61 63 69 6e 74 6f 73 68 | 2c 20 56 2d 31 39 33 2c |acintosh|, V-193,|
|00002590| 20 54 68 65 20 54 6f 6f | 6c 62 6f 78 20 45 76 65 | The Too|lbox Eve|
|000025a0| 6e 74 20 4d 61 6e 61 67 | 65 72 2c 20 66 6f 72 20 |nt Manag|er, for |
|000025b0| 61 6e 20 65 78 70 6c 61 | 6e 61 74 69 6f 6e 2e 0d |an expla|nation..|
|000025c0| a5 09 54 68 65 72 65 20 | 69 73 20 61 20 64 69 66 |..There |is a dif|
|000025d0| 66 65 72 65 6e 74 20 76 | 69 72 74 75 61 6c 20 6b |ferent v|irtual k|
|000025e0| 65 79 63 6f 64 65 20 66 | 6f 72 20 74 68 65 20 45 |eycode f|or the E|
|000025f0| 6e 74 65 72 20 6b 65 79 | 20 64 65 70 65 6e 64 69 |nter key| dependi|
|00002600| 6e 67 20 6f 6e 20 77 68 | 65 74 68 65 72 20 69 74 |ng on wh|ether it|
|00002610| 20 69 73 20 6f 6e 20 74 | 68 65 20 6b 65 79 70 61 | is on t|he keypa|
|00002620| 64 20 28 61 73 20 6f 6e | 20 74 68 65 20 4d 61 63 |d (as on| the Mac|
|00002630| 69 6e 74 6f 73 68 20 50 | 6c 75 73 20 6b 65 79 62 |intosh P|lus keyb|
|00002640| 6f 61 72 64 20 61 6e 64 | 20 6d 6f 73 74 20 41 44 |oard and| most AD|
|00002650| 42 20 6b 65 79 62 6f 61 | 72 64 73 29 20 6f 72 20 |B keyboa|rds) or |
|00002660| 6f 6e 20 74 68 65 20 6d | 61 69 6e 20 73 65 63 74 |on the m|ain sect|
|00002670| 69 6f 6e 20 6f 66 20 74 | 68 65 20 6b 65 79 62 6f |ion of t|he keybo|
|00002680| 61 72 64 20 28 61 73 20 | 6f 6e 20 74 68 65 20 4d |ard (as |on the M|
|00002690| 61 63 69 6e 74 6f 73 68 | 20 6b 65 79 62 6f 61 72 |acintosh| keyboar|
|000026a0| 64 20 61 6e 64 20 74 68 | 65 20 50 6f 72 74 61 62 |d and th|e Portab|
|000026b0| 6c 65 20 6b 65 79 62 6f | 61 72 64 29 2e 20 20 54 |le keybo|ard). T|
|000026c0| 68 65 20 6b 65 79 70 61 | 64 20 76 65 72 73 69 6f |he keypa|d versio|
|000026d0| 6e 20 68 61 73 20 6b 65 | 79 63 6f 64 65 20 24 34 |n has ke|ycode $4|
|000026e0| 43 2c 20 77 68 69 6c 65 | 20 74 68 65 20 6d 61 69 |C, while| the mai|
|000026f0| 6e 20 6b 65 79 62 6f 61 | 72 64 20 76 65 72 73 69 |n keyboa|rd versi|
|00002700| 6f 6e 20 68 61 73 20 6b | 65 79 63 6f 64 65 20 24 |on has k|eycode $|
|00002710| 33 34 2e 0d 52 65 6d 61 | 70 70 69 6e 67 20 74 68 |34..Rema|pping th|
|00002720| 65 20 4b 65 79 62 6f 61 | 72 64 0d 52 65 6d 61 70 |e Keyboa|rd.Remap|
|00002730| 70 69 6e 67 20 74 68 65 | 20 6b 65 79 62 6f 61 72 |ping the| keyboar|
|00002740| 64 20 63 61 6e 20 62 65 | 20 64 6f 6e 65 20 74 77 |d can be| done tw|
|00002750| 6f 20 77 61 79 73 3a 20 | 20 65 69 74 68 65 72 20 |o ways: | either |
|00002760| 61 74 20 62 6f 6f 74 20 | 74 69 6d 65 20 6f 72 20 |at boot |time or |
|00002770| 66 72 6f 6d 20 77 69 74 | 68 69 6e 20 61 6e 20 61 |from wit|hin an a|
|00002780| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 20 20 52 65 6d |pplicati|on. Rem|
|00002790| 61 70 70 69 6e 67 20 66 | 72 6f 6d 20 77 69 74 68 |apping f|rom with|
|000027a0| 69 6e 20 61 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |in an ap|plicatio|
|000027b0| 6e 20 63 61 6e 20 62 65 | 20 6d 61 64 65 20 70 65 |n can be| made pe|
|000027c0| 72 6d 61 6e 65 6e 74 20 | 28 75 6e 74 69 6c 20 74 |rmanent |(until t|
|000027d0| 68 65 20 6e 65 78 74 20 | 62 6f 6f 74 29 20 6f 72 |he next |boot) or|
|000027e0| 20 6f 6e 6c 79 20 66 6f | 72 20 74 68 65 20 6c 69 | only fo|r the li|
|000027f0| 66 65 20 6f 66 20 74 68 | 65 20 61 70 70 6c 69 63 |fe of th|e applic|
|00002800| 61 74 69 6f 6e 2e 20 20 | 54 68 65 20 72 65 6d 61 |ation. |The rema|
|00002810| 70 70 69 6e 67 20 69 73 | 20 61 63 63 6f 6d 70 6c |pping is| accompl|
|00002820| 69 73 68 65 64 20 62 79 | 20 6d 6f 64 69 66 79 69 |ished by| modifyi|
|00002830| 6e 67 20 61 20 27 4b 43 | 48 52 27 20 72 65 73 6f |ng a 'KC|HR' reso|
|00002840| 75 72 63 65 20 61 6e 64 | 20 74 65 6c 6c 69 6e 67 |urce and| telling|
|00002850| 20 74 68 65 20 53 79 73 | 74 65 6d 20 74 6f 20 75 | the Sys|tem to u|
|00002860| 73 65 20 74 68 65 20 6e | 65 77 20 27 4b 43 48 52 |se the n|ew 'KCHR|
|00002870| 27 2e 20 20 54 68 65 20 | 27 4b 43 48 52 27 20 6d |'. The |'KCHR' m|
|00002880| 75 73 74 20 68 61 76 65 | 20 61 6e 20 49 44 20 6e |ust have| an ID n|
|00002890| 75 6d 62 65 72 20 69 6e | 20 74 68 65 20 72 61 6e |umber in| the ran|
|000028a0| 67 65 20 6f 66 20 74 68 | 65 20 61 70 70 72 6f 70 |ge of th|e approp|
|000028b0| 72 69 61 74 65 20 73 63 | 72 69 70 74 20 61 6e 64 |riate sc|ript and|
|000028c0| 20 6d 75 73 74 20 68 61 | 76 65 20 61 6e 20 61 73 | must ha|ve an as|
|000028d0| 73 6f 63 69 61 74 65 64 | 20 27 53 49 43 4e 27 20 |sociated| 'SICN' |
|000028e0| 72 65 73 6f 75 72 63 65 | 20 77 69 74 68 20 74 68 |resource| with th|
|000028f0| 65 20 73 61 6d 65 20 49 | 44 20 6e 75 6d 62 65 72 |e same I|D number|
|00002900| 2e 20 20 54 68 65 20 52 | 6f 6d 61 6e 20 73 63 72 |. The R|oman scr|
|00002910| 69 70 74 2c 20 66 6f 72 | 20 65 78 61 6d 70 6c 65 |ipt, for| example|
|00002920| 2c 20 75 73 65 73 20 74 | 68 65 20 72 61 6e 67 65 |, uses t|he range|
|00002930| 20 30 20 74 6f 20 31 36 | 33 38 33 2c 20 61 6e 64 | 0 to 16|383, and|
|00002940| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 27 4b | the sta|ndard 'K|
|00002950| 43 48 52 27 20 49 44 73 | 20 66 6f 72 20 65 61 63 |CHR' IDs| for eac|
|00002960| 68 20 63 6f 75 6e 74 72 | 79 20 61 72 65 20 74 68 |h countr|y are th|
|00002970| 65 20 73 61 6d 65 20 61 | 73 20 74 68 65 20 63 6f |e same a|s the co|
|00002980| 75 6e 74 72 79 20 63 6f | 64 65 20 28 65 2e 67 2e |untry co|de (e.g.|
|00002990| 2c 20 55 53 20 3d 20 30 | 2c 20 46 72 65 6e 63 68 |, US = 0|, French|
|000029a0| 20 3d 20 31 2c 20 47 65 | 72 6d 61 6e 20 3d 20 32 | = 1, Ge|rman = 2|
|000029b0| 2c 20 65 74 63 2e 29 2e | 20 20 4f 74 68 65 72 20 |, etc.).| Other |
|000029c0| 52 6f 6d 61 6e 20 6b 65 | 79 62 6f 61 72 64 73 20 |Roman ke|yboards |
|000029d0| 73 68 6f 75 6c 64 20 68 | 61 76 65 20 6e 75 6d 62 |should h|ave numb|
|000029e0| 65 72 73 20 73 6f 6d 65 | 77 68 65 72 65 20 69 6e |ers some|where in|
|000029f0| 20 74 68 65 20 73 63 72 | 69 70 74 20 72 61 6e 67 | the scr|ipt rang|
|00002a00| 65 20 28 65 2e 67 2e 2c | 20 d2 44 76 6f 72 61 6b |e (e.g.,| .Dvorak|
|00002a10| d3 20 61 74 20 49 44 20 | 35 30 30 29 2e 0d 52 65 |. at ID |500)..Re|
|00002a20| 6d 61 70 20 41 74 20 42 | 6f 6f 74 20 54 69 6d 65 |map At B|oot Time|
|00002a30| 0d 54 6f 20 72 65 6d 61 | 70 20 74 68 65 20 6b 65 |.To rema|p the ke|
|00002a40| 79 62 6f 61 72 64 20 61 | 74 20 62 6f 6f 74 20 74 |yboard a|t boot t|
|00002a50| 69 6d 65 2c 20 74 68 65 | 72 65 20 6d 75 73 74 20 |ime, the|re must |
|00002a60| 62 65 20 61 20 6d 6f 64 | 69 66 69 65 64 20 27 4b |be a mod|ified 'K|
|00002a70| 43 48 52 27 20 72 65 73 | 6f 75 72 63 65 20 69 6e |CHR' res|ource in|
|00002a80| 20 74 68 65 20 53 79 73 | 74 65 6d 20 66 69 6c 65 | the Sys|tem file|
|00002a90| 20 77 69 74 68 20 61 6e | 20 49 44 20 6e 75 6d 62 | with an| ID numb|
|00002aa0| 65 72 20 69 6e 20 74 68 | 65 20 72 61 6e 67 65 20 |er in th|e range |
|00002ab0| 6f 66 20 74 68 65 20 61 | 70 70 72 6f 70 72 69 61 |of the a|ppropria|
|00002ac0| 74 65 20 73 63 72 69 70 | 74 20 61 6e 64 20 61 6e |te scrip|t and an|
|00002ad0| 20 61 73 73 6f 63 69 61 | 74 65 64 20 27 53 49 43 | associa|ted 'SIC|
|00002ae0| 4e 27 20 72 65 73 6f 75 | 72 63 65 20 77 69 74 68 |N' resou|rce with|
|00002af0| 20 74 68 65 20 73 61 6d | 65 20 49 44 20 6e 75 6d | the sam|e ID num|
|00002b00| 62 65 72 2e 20 20 54 6f | 20 6d 61 6b 65 20 74 68 |ber. To| make th|
|00002b10| 65 20 53 79 73 74 65 6d | 20 75 73 65 20 74 68 65 |e System| use the|
|00002b20| 20 6d 6f 64 69 66 69 65 | 64 20 27 4b 43 48 52 27 | modifie|d 'KCHR'|
|00002b30| 20 61 74 20 62 6f 6f 74 | 20 74 69 6d 65 2c 20 6f | at boot| time, o|
|00002b40| 6e 65 20 6d 75 73 74 20 | 63 68 61 6e 67 65 20 74 |ne must |change t|
|00002b50| 68 65 20 65 6e 74 72 69 | 65 73 20 69 6e 20 74 68 |he entri|es in th|
|00002b60| 65 20 27 69 74 6c 62 27 | 20 72 65 73 6f 75 72 63 |e 'itlb'| resourc|
|00002b70| 65 20 69 6e 20 74 68 65 | 20 53 79 73 74 65 6d 20 |e in the| System |
|00002b80| 66 69 6c 65 20 74 6f 20 | 72 65 66 6c 65 63 74 20 |file to |reflect |
|00002b90| 74 68 65 20 49 44 20 6f | 66 20 74 68 65 20 6d 6f |the ID o|f the mo|
|00002ba0| 64 69 66 69 65 64 20 27 | 4b 43 48 52 27 20 61 6e |dified '|KCHR' an|
|00002bb0| 64 20 27 53 49 43 4e 27 | 20 72 65 73 6f 75 72 63 |d 'SICN'| resourc|
|00002bc0| 65 73 2e 20 20 52 65 66 | 65 72 20 74 6f 20 74 68 |es. Ref|er to th|
|00002bd0| 65 20 6c 61 74 65 73 74 | 20 76 65 72 73 69 6f 6e |e latest| version|
|00002be0| 20 6f 66 20 4d 50 57 d5 | 73 20 53 79 73 54 79 70 | of MPW.|s SysTyp|
|00002bf0| 65 73 2e 72 20 66 69 6c | 65 20 66 6f 72 20 74 68 |es.r fil|e for th|
|00002c00| 65 20 65 78 61 63 74 20 | 66 6f 72 6d 61 74 20 6f |e exact |format o|
|00002c10| 66 20 74 68 65 20 27 69 | 74 6c 62 27 20 72 65 73 |f the 'i|tlb' res|
|00002c20| 6f 75 72 63 65 2e 0d 53 | 69 6e 63 65 20 41 70 70 |ource..S|ince App|
|00002c30| 6c 65 d5 73 20 53 79 73 | 74 65 6d 20 53 6f 66 74 |le.s Sys|tem Soft|
|00002c40| 77 61 72 65 20 4c 69 63 | 65 6e 73 69 6e 67 20 70 |ware Lic|ensing p|
|00002c50| 6f 6c 69 63 79 20 66 6f | 72 62 69 64 73 20 73 68 |olicy fo|rbids sh|
|00002c60| 69 70 70 69 6e 67 20 61 | 20 6d 6f 64 69 66 69 65 |ipping a| modifie|
|00002c70| 64 20 53 79 73 74 65 6d | 20 66 69 6c 65 2c 20 41 |d System| file, A|
|00002c80| 70 70 6c 65 20 73 75 67 | 67 65 73 74 73 20 75 73 |pple sug|gests us|
|00002c90| 69 6e 67 20 74 68 65 20 | 49 6e 73 74 61 6c 6c 65 |ing the |Installe|
|00002ca0| 72 20 74 6f 20 69 6e 73 | 74 61 6c 6c 20 74 68 65 |r to ins|tall the|
|00002cb0| 20 6e 65 77 20 72 65 73 | 6f 75 72 63 65 73 2e 20 | new res|ources. |
|00002cc0| 20 54 68 69 73 20 69 6e | 73 74 61 6c 6c 61 74 69 | This in|stallati|
|00002cd0| 6f 6e 20 73 68 6f 75 6c | 64 20 61 73 73 69 67 6e |on shoul|d assign|
|00002ce0| 20 74 68 65 20 6e 65 77 | 20 72 65 73 6f 75 72 63 | the new| resourc|
|00002cf0| 65 73 20 74 68 65 69 72 | 20 49 44 73 20 62 61 73 |es their| IDs bas|
|00002d00| 65 64 20 75 70 6f 6e 20 | 77 68 61 74 20 69 73 20 |ed upon |what is |
|00002d10| 63 75 72 72 65 6e 74 6c | 79 20 69 6e 20 74 68 65 |currentl|y in the|
|00002d20| 20 53 79 73 74 65 6d 20 | 66 69 6c 65 20 74 6f 20 | System |file to |
|00002d30| 61 76 6f 69 64 20 61 6c | 6c 20 63 6f 6e 66 6c 69 |avoid al|l confli|
|00002d40| 63 74 73 2e 20 20 52 65 | 66 65 72 20 74 6f 20 4d |cts. Re|fer to M|
|00002d50| 2e 50 54 2e 49 6e 73 74 | 61 6c 6c 65 72 20 66 6f |.PT.Inst|aller fo|
|00002d60| 72 20 6d 6f 72 65 20 64 | 65 74 61 69 6c 73 20 6f |r more d|etails o|
|00002d70| 6e 20 41 70 70 6c 65 d5 | 73 20 49 6e 73 74 61 6c |n Apple.|s Instal|
|00002d80| 6c 65 72 20 70 72 6f 67 | 72 61 6d 2e 0d 52 65 6d |ler prog|ram..Rem|
|00002d90| 61 70 20 41 66 74 65 72 | 20 42 6f 6f 74 20 54 69 |ap After| Boot Ti|
|00002da0| 6d 65 0d 54 6f 20 72 65 | 6d 61 70 20 74 68 65 20 |me.To re|map the |
|00002db0| 6b 65 79 62 6f 61 72 64 | 20 61 66 74 65 72 20 62 |keyboard| after b|
|00002dc0| 6f 6f 74 20 74 69 6d 65 | 2c 20 74 68 65 72 65 20 |oot time|, there |
|00002dd0| 6d 75 73 74 20 62 65 20 | 61 20 6d 6f 64 69 66 69 |must be |a modifi|
|00002de0| 65 64 20 27 4b 43 48 52 | 27 20 72 65 73 6f 75 72 |ed 'KCHR|' resour|
|00002df0| 63 65 20 69 6e 20 74 68 | 65 20 53 79 73 74 65 6d |ce in th|e System|
|00002e00| 20 66 69 6c 65 20 6f 72 | 20 69 6e 20 74 68 65 20 | file or| in the |
|00002e10| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 77 69 74 68 |applicat|ion with|
|00002e20| 20 61 6e 20 49 44 20 6e | 75 6d 62 65 72 20 69 6e | an ID n|umber in|
|00002e30| 20 74 68 65 20 72 61 6e | 67 65 20 6f 66 20 74 68 | the ran|ge of th|
|00002e40| 65 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 73 63 |e approp|riate sc|
|00002e50| 72 69 70 74 20 61 6e 64 | 20 61 6e 20 61 73 73 6f |ript and| an asso|
|00002e60| 63 69 61 74 65 64 20 27 | 53 49 43 4e 27 20 72 65 |ciated '|SICN' re|
|00002e70| 73 6f 75 72 63 65 20 77 | 69 74 68 20 74 68 65 20 |source w|ith the |
|00002e80| 73 61 6d 65 20 49 44 20 | 6e 75 6d 62 65 72 2e 20 |same ID |number. |
|00002e90| 20 4f 6e 65 20 6d 75 73 | 74 20 61 6c 73 6f 20 63 | One mus|t also c|
|00002ea0| 61 6c 6c 20 74 68 65 20 | 53 63 72 69 70 74 20 4d |all the |Script M|
|00002eb0| 61 6e 61 67 65 72 20 74 | 6f 20 73 65 74 20 75 70 |anager t|o set up|
|00002ec0| 20 74 68 65 20 70 72 6f | 70 65 72 20 72 65 73 6f | the pro|per reso|
|00002ed0| 75 72 63 65 73 20 61 6e | 64 20 74 65 6c 6c 20 74 |urces an|d tell t|
|00002ee0| 68 65 20 53 79 73 74 65 | 6d 20 74 6f 20 75 73 65 |he Syste|m to use|
|00002ef0| 20 74 68 65 6d 2e 20 20 | 46 69 72 73 74 20 63 61 | them. |First ca|
|00002f00| 6c 6c 20 5f 53 65 74 53 | 63 72 69 70 74 20 74 6f |ll _SetS|cript to|
|00002f10| 20 73 65 74 20 74 68 65 | 20 53 63 72 69 70 74 20 | set the| Script |
|00002f20| 4d 61 6e 61 67 65 72 d5 | 73 20 67 6c 6f 62 61 6c |Manager.|s global|
|00002f30| 20 76 61 72 69 61 62 6c | 65 20 66 6f 72 20 74 68 | variabl|e for th|
|00002f40| 65 20 27 4b 43 48 52 27 | 20 72 65 73 6f 75 72 63 |e 'KCHR'| resourc|
|00002f50| 65 20 49 44 2c 20 74 68 | 65 6e 20 63 61 6c 6c 20 |e ID, th|en call |
|00002f60| 5f 53 65 74 53 63 72 69 | 70 74 20 61 67 61 69 6e |_SetScri|pt again|
|00002f70| 20 74 6f 20 73 65 74 20 | 74 68 65 20 67 6c 6f 62 | to set |the glob|
|00002f80| 61 6c 20 76 61 72 69 61 | 62 6c 65 20 66 6f 72 20 |al varia|ble for |
|00002f90| 74 68 65 20 27 53 49 43 | 4e 27 20 72 65 73 6f 75 |the 'SIC|N' resou|
|00002fa0| 72 63 65 20 49 44 2e 20 | 20 4e 6f 77 20 63 61 6c |rce ID. | Now cal|
|00002fb0| 6c 20 5f 4b 65 79 53 63 | 72 69 70 74 20 74 6f 20 |l _KeySc|ript to |
|00002fc0| 6c 6f 61 64 20 74 68 65 | 20 72 65 73 6f 75 72 63 |load the| resourc|
|00002fd0| 65 73 20 61 6e 64 20 73 | 65 74 20 75 70 20 74 68 |es and s|et up th|
|00002fe0| 65 20 53 79 73 74 65 6d | 20 74 6f 20 75 73 65 20 |e System| to use |
|00002ff0| 74 68 65 6d 2e 20 20 54 | 68 65 20 66 6f 6c 6c 6f |them. T|he follo|
|00003000| 77 69 6e 67 20 73 61 6d | 70 6c 65 20 63 6f 64 65 |wing sam|ple code|
|00003010| 20 64 65 6d 6f 6e 73 74 | 72 61 74 65 73 20 74 68 | demonst|rates th|
|00003020| 65 73 65 20 63 61 6c 6c | 73 3a 0d 4d 50 57 20 50 |ese call|s:.MPW P|
|00003030| 61 73 63 61 6c 0d 20 20 | 20 20 43 4f 4e 53 54 0d |ascal. | CONST.|
|00003040| 20 20 20 20 20 20 44 76 | 6f 72 61 6b 49 44 20 3d | Dv|orakID =|
|00003050| 20 35 30 30 3b 0d 20 20 | 20 20 56 41 52 0d 20 20 | 500;. | VAR. |
|00003060| 20 20 20 20 65 72 72 3a | 20 4f 53 45 72 72 3b 0d | err:| OSErr;.|
|00003070| 20 20 20 20 42 45 47 49 | 4e 0d 20 20 20 20 20 20 | BEGI|N. |
|00003080| 65 72 72 20 3a 3d 20 53 | 65 74 53 63 72 69 70 74 |err := S|etScript|
|00003090| 28 73 6d 52 6f 6d 61 6e | 2c 20 73 6d 53 63 72 69 |(smRoman|, smScri|
|000030a0| 70 74 4b 65 79 73 2c 20 | 44 76 6f 72 61 6b 49 44 |ptKeys, |DvorakID|
|000030b0| 29 3b 0d 20 20 20 20 20 | 20 65 72 72 20 3a 3d 20 |);. | err := |
|000030c0| 53 65 74 53 63 72 69 70 | 74 28 73 6d 52 6f 6d 61 |SetScrip|t(smRoma|
|000030d0| 6e 2c 20 73 6d 53 63 72 | 69 70 74 49 63 6f 6e 2c |n, smScr|iptIcon,|
|000030e0| 20 44 76 6f 72 61 6b 49 | 44 29 3b 0d 20 20 20 20 | DvorakI|D);. |
|000030f0| 20 20 20 4b 65 79 53 63 | 72 69 70 74 28 73 6d 52 | KeySc|ript(smR|
|00003100| 6f 6d 61 6e 29 3b 0d 20 | 20 20 20 45 4e 44 3b 0d |oman);. | END;.|
|00003110| 27 4b 43 48 52 27 20 52 | 65 73 6f 75 72 63 65 20 |'KCHR' R|esource |
|00003120| 46 6f 72 6d 61 74 0d 54 | 68 69 73 20 73 65 63 74 |Format.T|his sect|
|00003130| 69 6f 6e 20 70 72 6f 76 | 69 64 65 73 20 61 20 67 |ion prov|ides a g|
|00003140| 65 6e 65 72 61 6c 20 64 | 65 73 63 72 69 70 74 69 |eneral d|escripti|
|00003150| 6f 6e 20 6f 66 20 74 68 | 65 20 27 4b 43 48 52 27 |on of th|e 'KCHR'|
|00003160| 20 72 65 73 6f 75 72 63 | 65 20 66 6f 72 6d 61 74 | resourc|e format|
|00003170| 3b 20 72 65 66 65 72 20 | 74 6f 20 74 68 65 20 6c |; refer |to the l|
|00003180| 61 74 65 73 74 20 76 65 | 72 73 69 6f 6e 20 6f 66 |atest ve|rsion of|
|00003190| 20 4d 50 57 d5 73 20 53 | 79 73 54 79 70 65 73 2e | MPW.s S|ysTypes.|
|000031a0| 72 20 66 69 6c 65 20 66 | 6f 72 20 74 68 65 20 65 |r file f|or the e|
|000031b0| 78 61 63 74 20 66 6f 72 | 6d 61 74 20 6f 66 20 74 |xact for|mat of t|
|000031c0| 68 65 20 27 4b 43 48 52 | 27 20 72 65 73 6f 75 72 |he 'KCHR|' resour|
|000031d0| 63 65 2e 0d 54 68 65 20 | 27 4b 43 48 52 27 20 72 |ce..The |'KCHR' r|
|000031e0| 65 73 6f 75 72 63 65 20 | 63 6f 6e 73 69 73 74 73 |esource |consists|
|000031f0| 20 6f 66 20 61 20 74 77 | 6f 2d 62 79 74 65 20 76 | of a tw|o-byte v|
|00003200| 65 72 73 69 6f 6e 20 6e | 75 6d 62 65 72 20 66 6f |ersion n|umber fo|
|00003210| 6c 6c 6f 77 65 64 20 62 | 79 20 61 20 32 35 36 2d |llowed b|y a 256-|
|00003220| 62 79 74 65 20 6d 6f 64 | 69 66 69 65 72 20 74 61 |byte mod|ifier ta|
|00003230| 62 6c 65 2c 20 6d 61 70 | 70 69 6e 67 20 61 6c 6c |ble, map|ping all|
|00003240| 20 32 35 36 20 70 6f 73 | 73 69 62 6c 65 20 6d 6f | 256 pos|sible mo|
|00003250| 64 69 66 69 65 72 20 73 | 74 61 74 65 73 20 74 6f |difier s|tates to|
|00003260| 20 61 20 74 61 62 6c 65 | 20 6e 75 6d 62 65 72 2e | a table| number.|
|00003270| 20 20 54 68 69 73 20 74 | 61 62 6c 65 20 69 73 20 | This t|able is |
|00003280| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 61 20 74 77 |followed| by a tw|
|00003290| 6f 2d 62 79 74 65 20 63 | 6f 75 6e 74 20 6f 66 20 |o-byte c|ount of |
|000032a0| 74 61 62 6c 65 73 2c 20 | 77 68 69 63 68 20 69 73 |tables, |which is|
|000032b0| 2c 20 69 6e 20 74 75 72 | 6e 2c 20 66 6f 6c 6c 6f |, in tur|n, follo|
|000032c0| 77 65 64 20 62 79 20 74 | 68 61 74 20 6d 61 6e 79 |wed by t|hat many|
|000032d0| 20 31 32 38 2d 62 79 74 | 65 20 41 53 43 49 49 20 | 128-byt|e ASCII |
|000032e0| 74 61 62 6c 65 73 2e 20 | 20 54 68 65 20 41 53 43 |tables. | The ASC|
|000032f0| 49 49 20 74 61 62 6c 65 | 73 20 6d 61 70 20 74 68 |II table|s map th|
|00003300| 65 20 76 69 72 74 75 61 | 6c 20 6b 65 79 63 6f 64 |e virtua|l keycod|
|00003310| 65 20 74 6f 20 61 6e 20 | 41 53 43 49 49 20 76 61 |e to an |ASCII va|
|00003320| 6c 75 65 3b 20 7a 65 72 | 6f 20 73 69 67 6e 69 66 |lue; zer|o signif|
|00003330| 69 65 73 20 61 20 64 65 | 61 64 20 6b 65 79 2c 20 |ies a de|ad key, |
|00003340| 61 6e 64 20 69 6e 20 74 | 68 69 73 20 63 61 73 65 |and in t|his case|
|00003350| 20 74 68 65 20 64 65 61 | 64 20 6b 65 79 20 74 61 | the dea|d key ta|
|00003360| 62 6c 65 20 6d 75 73 74 | 20 62 65 20 73 65 61 72 |ble must| be sear|
|00003370| 63 68 65 64 2e 20 20 54 | 68 65 20 64 65 61 64 20 |ched. T|he dead |
|00003380| 6b 65 79 20 74 61 62 6c | 65 20 69 73 20 63 6f 6d |key tabl|e is com|
|00003390| 70 6f 73 65 64 20 6f 66 | 20 61 20 63 6f 75 6e 74 |posed of| a count|
|000033a0| 20 6f 66 20 64 65 61 64 | 20 6b 65 79 20 72 65 63 | of dead| key rec|
|000033b0| 6f 72 64 73 20 28 74 77 | 6f 20 62 79 74 65 73 29 |ords (tw|o bytes)|
|000033c0| 20 61 6e 64 20 74 68 61 | 74 20 6d 61 6e 79 20 64 | and tha|t many d|
|000033d0| 65 61 64 20 6b 65 79 20 | 72 65 63 6f 72 64 73 2e |ead key |records.|
|000033e0| 20 20 41 20 64 65 61 64 | 20 6b 65 79 20 72 65 63 | A dead| key rec|
|000033f0| 6f 72 64 20 63 6f 6e 73 | 69 73 74 73 20 6f 66 20 |ord cons|ists of |
|00003400| 61 20 6f 6e 65 2d 62 79 | 74 65 20 74 61 62 6c 65 |a one-by|te table|
|00003410| 20 6e 75 6d 62 65 72 2c | 20 61 20 6f 6e 65 2d 62 | number,| a one-b|
|00003420| 79 74 65 20 76 69 72 74 | 75 61 6c 20 6b 65 79 63 |yte virt|ual keyc|
|00003430| 6f 64 65 20 28 77 69 74 | 68 6f 75 74 20 61 6e 20 |ode (wit|hout an |
|00003440| 75 70 20 6f 72 20 64 6f | 77 6e 20 62 69 74 29 2c |up or do|wn bit),|
|00003450| 20 61 20 63 6f 6d 70 6c | 65 74 6f 72 20 74 61 62 | a compl|etor tab|
|00003460| 6c 65 2c 20 61 6e 64 20 | 61 20 6e 6f 2d 6d 61 74 |le, and |a no-mat|
|00003470| 63 68 20 63 68 61 72 61 | 63 74 65 72 2e 0d 57 68 |ch chara|cter..Wh|
|00003480| 65 6e 20 5f 4b 65 79 54 | 72 61 6e 73 20 73 65 61 |en _KeyT|rans sea|
|00003490| 72 63 68 65 73 20 74 68 | 65 20 64 65 61 64 20 6b |rches th|e dead k|
|000034a0| 65 79 20 72 65 63 6f 72 | 64 73 2c 20 69 74 20 63 |ey recor|ds, it c|
|000034b0| 68 65 63 6b 73 20 66 6f | 72 20 61 20 6d 61 74 63 |hecks fo|r a matc|
|000034c0| 68 20 77 69 74 68 20 74 | 68 65 20 74 61 62 6c 65 |h with t|he table|
|000034d0| 20 6e 75 6d 62 65 72 20 | 61 6e 64 20 74 68 65 20 | number |and the |
|000034e0| 6b 65 79 63 6f 64 65 2e | 20 20 49 66 20 74 68 65 |keycode.| If the|
|000034f0| 72 65 20 69 73 20 6e 6f | 20 6d 61 74 63 68 2c 20 |re is no| match, |
|00003500| 69 74 20 69 73 20 6e 6f | 74 20 61 20 64 65 61 64 |it is no|t a dead|
|00003510| 20 6b 65 79 2c 20 61 6e | 64 20 61 20 7a 65 72 6f | key, an|d a zero|
|00003520| 20 69 73 20 72 65 74 75 | 72 6e 65 64 2e 20 20 49 | is retu|rned. I|
|00003530| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 6d 61 74 |f there |is a mat|
|00003540| 63 68 2c 20 69 74 20 69 | 73 20 72 65 63 6f 72 64 |ch, it i|s record|
|00003550| 65 64 20 69 6e 20 74 68 | 65 20 73 74 61 74 65 20 |ed in th|e state |
|00003560| 76 61 72 69 61 62 6c 65 | 2e 20 20 49 66 20 74 68 |variable|. If th|
|00003570| 65 20 70 72 65 76 69 6f | 75 73 20 6b 65 79 20 77 |e previo|us key w|
|00003580| 61 73 20 61 20 64 65 61 | 64 20 6b 65 79 2c 20 74 |as a dea|d key, t|
|00003590| 68 65 20 63 6f 6d 70 6c | 65 74 6f 72 20 74 61 62 |he compl|etor tab|
|000035a0| 6c 65 20 69 73 20 73 65 | 61 72 63 68 65 64 2e 20 |le is se|arched. |
|000035b0| 20 54 68 65 20 63 6f 6d | 70 6c 65 74 6f 72 20 74 | The com|pletor t|
|000035c0| 61 62 6c 65 20 69 73 20 | 63 6f 6d 70 72 69 73 65 |able is |comprise|
|000035d0| 64 20 6f 66 20 61 20 63 | 6f 75 6e 74 20 6f 66 20 |d of a c|ount of |
|000035e0| 63 6f 6d 70 6c 65 74 6f | 72 20 72 65 63 6f 72 64 |completo|r record|
|000035f0| 73 2c 20 66 6f 6c 6c 6f | 77 65 64 20 62 79 20 74 |s, follo|wed by t|
|00003600| 68 61 74 20 6e 75 6d 62 | 65 72 20 6f 66 20 63 6f |hat numb|er of co|
|00003610| 6d 70 6c 65 74 6f 72 20 | 72 65 63 6f 72 64 73 2e |mpletor |records.|
|00003620| 0d 41 20 63 6f 6d 70 6c | 65 74 6f 72 20 72 65 63 |.A compl|etor rec|
|00003630| 6f 72 64 20 69 73 20 73 | 69 6d 70 6c 79 20 61 20 |ord is s|imply a |
|00003640| 73 75 62 73 74 69 74 75 | 74 69 6f 6e 20 6c 69 73 |substitu|tion lis|
|00003650| 74 20 66 6f 72 20 41 53 | 43 49 49 20 63 68 61 72 |t for AS|CII char|
|00003660| 61 63 74 65 72 73 2e 20 | 20 49 66 20 74 68 65 20 |acters. | If the |
|00003670| 41 53 43 49 49 20 63 68 | 61 72 61 63 74 65 72 20 |ASCII ch|aracter |
|00003680| 6d 61 74 63 68 65 73 20 | 74 68 65 20 66 69 72 73 |matches |the firs|
|00003690| 74 20 62 79 74 65 20 69 | 6e 20 74 68 65 20 63 6f |t byte i|n the co|
|000036a0| 6d 70 6c 65 74 6f 72 20 | 72 65 63 6f 72 64 2c 20 |mpletor |record, |
|000036b0| 74 68 65 20 73 65 63 6f | 6e 64 20 62 79 74 65 20 |the seco|nd byte |
|000036c0| 69 73 20 73 75 62 73 74 | 69 74 75 74 65 64 20 66 |is subst|ituted f|
|000036d0| 6f 72 20 69 74 2e 20 20 | 57 68 65 6e 20 74 68 65 |or it. |When the|
|000036e0| 72 65 20 69 73 20 6e 6f | 20 73 75 62 73 74 69 74 |re is no| substit|
|000036f0| 75 74 69 6f 6e 20 74 6f | 20 62 65 20 6d 61 64 65 |ution to| be made|
|00003700| 2c 20 74 68 65 20 6f 72 | 69 67 69 6e 61 6c 20 41 |, the or|iginal A|
|00003710| 53 43 49 49 20 63 68 61 | 72 61 63 74 65 72 20 69 |SCII cha|racter i|
|00003720| 73 20 70 72 65 63 65 64 | 65 64 20 62 79 20 74 68 |s preced|ed by th|
|00003730| 65 20 6e 6f 20 6d 61 74 | 63 68 20 63 68 61 72 61 |e no mat|ch chara|
|00003740| 63 74 65 72 20 66 6f 75 | 6e 64 20 61 74 20 74 68 |cter fou|nd at th|
|00003750| 65 20 61 74 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |e at the| end of |
|00003760| 74 68 65 20 64 65 61 64 | 20 6b 65 79 20 72 65 63 |the dead| key rec|
|00003770| 6f 72 64 2e 0d 27 4b 4d | 41 50 27 20 52 65 73 6f |ord..'KM|AP' Reso|
|00003780| 75 72 63 65 20 46 6f 72 | 6d 61 74 0d 54 68 69 73 |urce For|mat.This|
|00003790| 20 73 65 63 74 69 6f 6e | 20 70 72 6f 76 69 64 65 | section| provide|
|000037a0| 73 20 61 20 67 65 6e 65 | 72 61 6c 20 64 65 73 63 |s a gene|ral desc|
|000037b0| 72 69 70 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 27 |ription |of the '|
|000037c0| 4b 4d 41 50 27 20 72 65 | 73 6f 75 72 63 65 20 66 |KMAP' re|source f|
|000037d0| 6f 72 6d 61 74 3b 20 72 | 65 66 65 72 20 74 6f 20 |ormat; r|efer to |
|000037e0| 74 68 65 20 6c 61 74 65 | 73 74 20 76 65 72 73 69 |the late|st versi|
|000037f0| 6f 6e 20 6f 66 20 4d 50 | 57 d5 73 20 53 79 73 54 |on of MP|W.s SysT|
|00003800| 79 70 65 73 2e 72 20 66 | 69 6c 65 20 66 6f 72 20 |ypes.r f|ile for |
|00003810| 74 68 65 20 65 78 61 63 | 74 20 66 6f 72 6d 61 74 |the exac|t format|
|00003820| 20 6f 66 20 74 68 65 20 | 27 4b 4d 41 50 27 20 72 | of the |'KMAP' r|
|00003830| 65 73 6f 75 72 63 65 2e | 0d 54 68 65 20 27 4b 4d |esource.|.The 'KM|
|00003840| 41 50 27 20 72 65 73 6f | 75 72 63 65 20 73 74 61 |AP' reso|urce sta|
|00003850| 72 74 73 20 77 69 74 68 | 20 61 20 74 77 6f 2d 62 |rts with| a two-b|
|00003860| 79 74 65 20 49 44 2c 20 | 66 6f 6c 6c 6f 77 65 64 |yte ID, |followed|
|00003870| 20 62 79 20 61 20 74 77 | 6f 2d 62 79 74 65 20 76 | by a tw|o-byte v|
|00003880| 65 72 73 69 6f 6e 20 6e | 75 6d 62 65 72 2e 20 20 |ersion n|umber. |
|00003890| 54 68 65 73 65 20 66 6f | 75 72 20 62 79 74 65 73 |These fo|ur bytes|
|000038a0| 20 61 72 65 20 66 6f 6c | 6c 6f 77 65 64 20 62 79 | are fol|lowed by|
|000038b0| 20 74 68 65 20 31 32 38 | 2d 62 79 74 65 20 6b 65 | the 128|-byte ke|
|000038c0| 79 63 6f 64 65 20 6d 61 | 70 70 69 6e 67 20 74 61 |ycode ma|pping ta|
|000038d0| 62 6c 65 2c 20 64 65 73 | 63 72 69 62 65 64 20 70 |ble, des|cribed p|
|000038e0| 72 65 76 69 6f 75 73 6c | 79 2e 20 20 54 68 65 20 |reviousl|y. The |
|000038f0| 74 61 62 6c 65 20 69 73 | 20 66 6f 6c 6c 6f 77 65 |table is| followe|
|00003900| 64 20 62 79 20 61 20 6c | 69 73 74 20 6f 66 20 65 |d by a l|ist of e|
|00003910| 78 63 65 70 74 69 6f 6e | 73 2e 20 20 54 68 65 20 |xception|s. The |
|00003920| 31 32 38 2d 62 79 74 65 | 20 74 61 62 6c 65 20 69 |128-byte| table i|
|00003930| 73 20 73 69 6d 70 6c 79 | 20 61 20 6f 6e 65 2d 74 |s simply| a one-t|
|00003940| 6f 2d 6f 6e 65 20 6d 61 | 70 70 69 6e 67 20 6f 66 |o-one ma|pping of|
|00003950| 20 72 65 61 6c 20 6b 65 | 79 63 6f 64 65 73 20 74 | real ke|ycodes t|
|00003960| 6f 20 76 69 72 74 75 61 | 6c 20 6b 65 79 63 6f 64 |o virtua|l keycod|
|00003970| 65 73 3b 20 74 68 65 20 | 66 69 72 73 74 20 62 79 |es; the |first by|
|00003980| 74 65 20 69 73 20 74 68 | 65 20 76 69 72 74 75 61 |te is th|e virtua|
|00003990| 6c 20 6b 65 79 63 6f 64 | 65 20 66 6f 72 20 24 30 |l keycod|e for $0|
|000039a0| 30 2c 20 74 68 65 20 73 | 65 63 6f 6e 64 20 66 6f |0, the s|econd fo|
|000039b0| 72 20 24 30 31 2c 20 65 | 74 63 2e 20 20 54 68 65 |r $01, e|tc. The|
|000039c0| 20 68 69 67 68 20 62 69 | 74 20 6f 66 20 74 68 65 | high bi|t of the|
|000039d0| 20 76 69 72 74 75 61 6c | 20 6b 65 79 63 6f 64 65 | virtual| keycode|
|000039e0| 20 73 69 67 6e 61 6c 73 | 20 61 6e 20 65 78 63 65 | signals| an exce|
|000039f0| 70 74 69 6f 6e 20 65 6e | 74 72 79 20 69 6e 20 74 |ption en|try in t|
|00003a00| 68 65 20 65 78 63 65 70 | 74 69 6f 6e 20 6c 69 73 |he excep|tion lis|
|00003a10| 74 2e 0d 54 68 65 20 65 | 78 63 65 70 74 69 6f 6e |t..The e|xception|
|00003a20| 20 6c 69 73 74 20 69 73 | 20 75 73 65 64 20 74 6f | list is| used to|
|00003a30| 20 65 6e 61 62 6c 65 20 | 74 68 65 20 64 65 76 69 | enable |the devi|
|00003a40| 63 65 20 64 72 69 76 65 | 72 20 74 6f 20 69 6e 69 |ce drive|r to ini|
|00003a50| 74 69 61 74 65 20 63 6f | 6d 6d 75 6e 69 63 61 74 |tiate co|mmunicat|
|00003a60| 69 6f 6e 20 77 69 74 68 | 20 74 68 65 20 64 65 76 |ion with| the dev|
|00003a70| 69 63 65 2c 20 75 73 75 | 61 6c 6c 79 20 74 6f 20 |ice, usu|ally to |
|00003a80| 70 65 72 66 6f 72 6d 20 | 61 20 73 74 61 74 65 20 |perform |a state |
|00003a90| 63 68 61 6e 67 65 2e 20 | 20 54 68 65 20 65 78 63 |change. | The exc|
|00003aa0| 65 70 74 69 6f 6e 20 6c | 69 73 74 20 62 65 67 69 |eption l|ist begi|
|00003ab0| 6e 73 20 77 69 74 68 20 | 61 20 74 77 6f 2d 62 79 |ns with |a two-by|
|00003ac0| 74 65 20 72 65 63 6f 72 | 64 20 63 6f 75 6e 74 20 |te recor|d count |
|00003ad0| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 74 68 61 74 |followed| by that|
|00003ae0| 20 6d 61 6e 79 20 72 65 | 63 6f 72 64 73 2e 20 20 | many re|cords. |
|00003af0| 54 68 65 20 66 6f 72 6d | 61 74 20 6f 66 20 74 68 |The form|at of th|
|00003b00| 65 20 65 78 63 65 70 74 | 69 6f 6e 20 72 65 63 6f |e except|ion reco|
|00003b10| 72 64 20 69 73 20 61 76 | 61 69 6c 61 62 6c 65 20 |rd is av|ailable |
|00003b20| 69 6e 20 74 68 65 20 4d | 50 57 20 53 79 73 54 79 |in the M|PW SysTy|
|00003b30| 70 65 73 2e 72 20 66 69 | 6c 65 2e 20 20 54 68 65 |pes.r fi|le. The|
|00003b40| 20 72 61 77 20 6b 65 79 | 63 6f 64 65 20 69 73 20 | raw key|code is |
|00003b50| 74 68 65 20 6b 65 79 63 | 6f 64 65 20 61 73 20 67 |the keyc|ode as g|
|00003b60| 65 6e 65 72 61 74 65 64 | 20 62 79 20 74 68 65 20 |enerated| by the |
|00003b70| 64 65 76 69 63 65 2e 20 | 20 54 68 65 20 58 4f 52 |device. | The XOR|
|00003b80| 20 62 69 74 20 69 6e 66 | 6f 72 6d 73 20 74 68 65 | bit inf|orms the|
|00003b90| 20 64 72 69 76 65 72 20 | 74 6f 20 69 6e 76 65 72 | driver |to inver|
|00003ba0| 74 20 74 68 65 20 73 74 | 61 74 65 20 6f 66 20 74 |t the st|ate of t|
|00003bb0| 68 65 20 6b 65 79 20 69 | 6e 73 74 65 61 64 20 6f |he key i|nstead o|
|00003bc0| 66 20 75 73 69 6e 67 20 | 74 68 65 20 73 74 61 74 |f using |the stat|
|00003bd0| 65 20 70 72 6f 76 69 64 | 65 64 20 62 79 20 74 68 |e provid|ed by th|
|00003be0| 65 20 68 61 72 64 77 61 | 72 65 2e 20 20 54 68 69 |e hardwa|re. Thi|
|00003bf0| 73 20 63 61 6e 20 62 65 | 20 75 73 65 64 20 74 6f |s can be| used to|
|00003c00| 20 70 72 6f 76 69 64 65 | 20 6b 65 79 73 20 74 68 | provide| keys th|
|00003c10| 61 74 20 6c 6f 63 6b 20 | 69 6e 20 73 6f 66 74 77 |at lock |in softw|
|00003c20| 61 72 65 2e 20 20 49 6e | 73 69 64 65 20 4d 61 63 |are. In|side Mac|
|00003c30| 69 6e 74 6f 73 68 2c 20 | 56 6f 6c 75 6d 65 20 56 |intosh, |Volume V|
|00003c40| 2c 20 54 68 65 20 41 70 | 70 6c 65 20 44 65 73 6b |, The Ap|ple Desk|
|00003c50| 74 6f 70 20 42 75 73 2c | 20 64 65 73 63 72 69 62 |top Bus,| describ|
|00003c60| 65 73 20 74 68 65 20 41 | 44 42 20 6f 70 63 6f 64 |es the A|DB opcod|
|00003c70| 65 2e 20 20 46 69 6e 61 | 6c 6c 79 2c 20 74 68 65 |e. Fina|lly, the|
|00003c80| 20 64 61 74 61 20 73 74 | 72 69 6e 67 20 69 73 20 | data st|ring is |
|00003c90| 61 20 50 61 73 63 61 6c | 20 73 74 72 69 6e 67 20 |a Pascal| string |
|00003ca0| 74 68 61 74 20 69 73 20 | 70 61 73 73 65 64 20 74 |that is |passed t|
|00003cb0| 6f 20 74 68 65 20 5f 41 | 44 42 4f 70 20 74 72 61 |o the _A|DBOp tra|
|00003cc0| 70 2e 0d 46 75 72 74 68 | 65 72 20 52 65 66 65 72 |p..Furth|er Refer|
|00003cd0| 65 6e 63 65 3a 0d a5 09 | 49 6e 73 69 64 65 20 4d |ence:...|Inside M|
|00003ce0| 61 63 69 6e 74 6f 73 68 | 2c 20 56 6f 6c 75 6d 65 |acintosh|, Volume|
|00003cf0| 20 56 2c 20 54 68 65 20 | 54 6f 6f 6c 62 6f 78 20 | V, The |Toolbox |
|00003d00| 45 76 65 6e 74 20 4d 61 | 6e 61 67 65 72 0d a5 09 |Event Ma|nager...|
|00003d10| 49 6e 73 69 64 65 20 4d | 61 63 69 6e 74 6f 73 68 |Inside M|acintosh|
|00003d20| 2c 20 56 6f 6c 75 6d 65 | 20 56 2c 20 54 68 65 20 |, Volume| V, The |
|00003d30| 41 70 70 6c 65 20 44 65 | 73 6b 74 6f 70 20 42 75 |Apple De|sktop Bu|
|00003d40| 73 0d a5 09 54 65 63 68 | 6e 69 63 61 6c 20 4e 6f |s...Tech|nical No|
|00003d50| 74 65 20 50 54 20 31 31 | 20 2d 20 41 70 70 6c 65 |te PT 11| - Apple|
|00003d60| 27 73 20 4d 75 6c 74 69 | 64 69 73 6b 20 49 6e 73 |'s Multi|disk Ins|
|00003d70| 74 61 6c 6c 65 72 0d a5 | 09 54 65 63 68 6e 69 63 |taller..|.Technic|
|00003d80| 61 6c 20 4e 6f 74 65 20 | 54 45 20 32 33 20 2d 20 |al Note |TE 23 - |
|00003d90| 49 6e 74 65 72 6e 61 74 | 69 6f 6e 61 6c 20 43 61 |Internat|ional Ca|
|00003da0| 6e 63 65 6c 69 6e 67 0d | 1a ba 00 00 00 00 03 48 |nceling.|.......H|
|00003db0| 02 52 00 11 02 ff 0c 00 | ff ff ff ff 00 00 00 00 |.R......|........|
|00003dc0| 00 00 00 00 02 52 00 00 | 03 48 00 00 00 00 00 00 |.....R..|.H......|
|00003dd0| 00 1e 00 01 00 0a 00 00 | 00 00 03 49 02 52 00 20 |........|...I.R. |
|00003de0| 02 be 00 58 02 be 02 1d | 00 2c 00 08 00 14 05 54 |...X....|.,.....T|
|00003df0| 69 6d 65 73 00 03 00 14 | 00 0d 00 0a 00 2e 00 04 |imes....|........|
|00003e00| 00 00 00 00 00 28 02 d6 | 00 5a 13 54 42 20 31 32 |.....(..|.Z.TB 12|
|00003e10| 20 2d 20 4b 65 79 20 4d | 61 70 70 69 6e 67 00 28 | - Key M|apping.(|
|00003e20| 02 d6 02 04 01 31 00 29 | 05 05 20 6f 66 20 36 00 |.....1.)|.. of 6.|
|00003e30| 00 28 02 ec 00 5a 07 54 | 6f 6f 6c 62 6f 78 00 a0 |.(...Z.T|oolbox..|
|00003e40| 00 82 00 01 00 0a 00 2f | 00 5a 00 81 02 23 00 07 |......./|.Z...#..|
|00003e50| 00 00 00 00 00 08 00 0a | 00 09 30 49 88 3a b5 9c |........|..0I.:..|
|00003e60| f0 39 00 22 00 7b 02 1a | 00 00 00 09 ff ff ff ff |.9.".{..|........|
|00003e70| ff ff ff ff 00 23 00 00 | 00 a0 00 c4 00 a1 00 64 |.....#..|.......d|
|00003e80| 00 0a 4f 4e 4c 4e 00 66 | 00 00 01 fe 00 a0 00 8c |..ONLN.f|........|
|00003e90| 00 a1 00 64 00 31 64 72 | 77 32 00 02 01 c9 00 2d |...d.1dr|w2.....-|
|00003ea0| 01 e1 01 5f 00 00 80 00 | 00 00 00 00 00 00 00 00 |..._....|........|
|00003eb0| 00 00 00 00 00 00 00 00 | ff ff ff ff ff ff 00 01 |........|........|
|00003ec0| 00 00 01 8f 00 00 00 00 | 00 a1 00 96 00 0c 01 00 |........|........|
|00003ed0| 00 00 02 78 00 00 00 00 | 00 00 00 a1 00 64 00 10 |...x....|.....d..|
|00003ee0| 64 72 77 32 00 3a 00 05 | 00 00 00 00 00 01 00 00 |drw2.:..|........|
|00003ef0| 00 a1 00 64 00 0e 64 72 | 77 32 00 3a 00 02 00 24 |...d..dr|w2.:...$|
|00003f00| 00 00 00 00 00 a1 00 64 | 00 34 64 72 77 32 00 3a |.......d|.4drw2.:|
|00003f10| 00 01 00 03 01 00 00 18 | 00 00 00 00 00 00 00 00 |........|........|
|00003f20| 00 00 00 01 00 01 00 01 | 00 01 00 00 00 00 00 00 |........|........|
|00003f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 a1 |........|........|
|00003f40| 00 9a 00 08 ff fa 00 00 | 00 97 40 00 00 a0 00 98 |........|..@.....|
|00003f50| 00 04 01 00 00 0d 00 18 | 00 2e 00 04 00 00 01 00 |........|........|
|00003f60| 00 10 00 52 01 c9 00 52 | 01 c9 00 28 00 42 00 5d |...R...R|...(.B.]|
|00003f70| 13 4e 65 77 20 54 65 63 | 68 6e 69 63 61 6c 20 4e |.New Tec|hnical N|
|00003f80| 6f 74 65 73 00 a0 00 99 | 00 a1 00 64 00 08 64 72 |otes....|...d..dr|
|00003f90| 77 32 00 3a 00 04 00 a1 | 14 e3 00 02 00 01 00 a0 |w2.:....|........|
|00003fa0| 00 97 00 a1 00 64 00 31 | 64 72 77 32 00 02 02 06 |.....d.1|drw2....|
|00003fb0| 01 65 02 19 01 f4 00 00 | 80 00 00 00 00 00 00 00 |.e......|........|
|00003fc0| 00 00 00 00 00 00 00 00 | 00 00 ff ff ff ff ff ff |........|........|
|00003fd0| 00 01 00 00 01 50 00 00 | 00 00 00 a1 00 96 00 0c |.....P..|........|
|00003fe0| 01 00 00 00 02 78 00 00 | 00 00 00 00 00 a1 00 64 |.....x..|.......d|
|00003ff0| 00 10 64 72 77 32 00 3a | 00 05 00 00 00 00 00 01 |..drw2.:|........|
|00004000| 00 00 00 a1 00 64 00 0e | 64 72 77 32 00 3a 00 02 |.....d..|drw2.:..|
|00004010| 00 24 00 00 00 00 00 a1 | 00 64 00 34 64 72 77 32 |.$......|.d.4drw2|
|00004020| 00 3a 00 01 00 03 00 00 | 00 12 00 00 00 00 00 00 |.:......|........|
|00004030| 00 00 00 00 00 01 00 01 | 00 01 00 01 00 00 00 00 |........|........|
|00004040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004050| 00 a1 00 9a 00 08 ff fb | 80 00 00 45 c0 00 00 a0 |........|...E....|
|00004060| 00 98 00 04 00 00 00 0d | 00 12 00 28 00 7b 01 95 |........|...(.{..|
|00004070| 11 44 65 76 65 6c 6f 70 | 65 72 20 53 75 70 70 6f |.Develop|er Suppo|
|00004080| 72 74 00 a0 00 99 00 a1 | 00 64 00 08 64 72 77 32 |rt......|.d..drw2|
|00004090| 00 3a 00 04 00 a1 14 e3 | 00 02 00 01 00 a0 00 97 |.:......|........|
|000040a0| 00 a1 00 64 00 60 64 72 | 77 32 00 03 02 00 00 2d |...d.`dr|w2.....-|
|000040b0| 02 00 01 ef 00 00 00 00 | 00 00 00 00 02 02 00 00 |........|........|
|000040c0| 00 00 00 00 00 00 00 00 | ff ff ff ff ff ff 00 01 |........|........|
|000040d0| 00 01 08 4b 00 00 00 00 | 02 00 01 ef 02 00 00 2d |...K....|.......-|
|000040e0| 00 00 00 00 00 00 00 00 | 00 01 00 14 00 0c 00 03 |........|........|
|000040f0| 00 02 00 00 00 5a 00 01 | 00 00 00 02 00 00 00 03 |.....Z..|........|
|00004100| 00 0c 00 00 00 00 00 07 | 00 02 00 02 00 08 00 08 |........|........|
|00004110| 00 20 00 66 02 1c 00 66 | 00 5a 00 a1 00 64 00 31 |. .f...f|.Z...d.1|
|00004120| 64 72 77 32 00 02 01 ca | 01 c0 01 fa 01 e9 00 00 |drw2....|........|
|00004130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004140| 00 00 ff ff ff ff ff ff | 00 01 00 00 01 4b 00 00 |........|.....K..|
|00004150| 00 00 00 a1 00 96 00 0c | 01 00 00 00 02 78 00 00 |........|.....x..|
|00004160| 00 00 00 00 00 a1 00 64 | 00 10 64 72 77 32 00 3a |.......d|..drw2.:|
|00004170| 00 05 00 00 00 00 00 01 | 00 00 00 a1 00 64 00 0e |........|.....d..|
|00004180| 64 72 77 32 00 3a 00 02 | 00 24 00 00 00 00 00 a1 |drw2.:..|.$......|
|00004190| 00 64 00 34 64 72 77 32 | 00 3a 00 01 00 03 00 00 |.d.4drw2|.:......|
|000041a0| 00 30 00 00 00 00 00 00 | 00 00 00 00 00 01 00 01 |.0......|........|
|000041b0| 00 01 00 01 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041c0| 00 00 00 00 00 00 00 00 | 00 a1 00 9a 00 08 ff f4 |........|........|
|000041d0| 00 00 00 13 80 00 00 a0 | 00 98 00 0d 00 30 00 28 |........|.....0.(|
|000041e0| 00 55 01 ef 01 f0 00 a0 | 00 99 00 a1 00 64 00 08 |.U......|.....d..|
|000041f0| 64 72 77 32 00 3a 00 04 | 00 a1 14 e3 00 02 00 01 |drw2.:..|........|
|00004200| 00 a0 00 97 00 a1 00 64 | 00 31 64 72 77 32 00 02 |.......d|.1drw2..|
|00004210| 01 ef 01 e6 01 fa 01 f0 | 00 00 00 00 00 00 00 00 |........|........|
|00004220| 00 00 00 00 00 00 00 00 | 00 00 00 00 ff ff ff ff |........|........|
|00004230| ff ff 00 01 00 00 01 00 | 00 00 00 00 00 a1 00 96 |........|........|
|00004240| 00 0c 01 00 00 00 02 78 | 00 00 00 00 00 00 00 a1 |.......x|........|
|00004250| 00 64 00 10 64 72 77 32 | 00 3a 00 05 00 00 00 00 |.d..drw2|.:......|
|00004260| 00 01 00 00 00 a1 00 64 | 00 0e 64 72 77 32 00 3a |.......d|..drw2.:|
|00004270| 00 02 00 24 00 00 00 00 | 00 a1 00 64 00 34 64 72 |...$....|...d.4dr|
|00004280| 77 32 00 3a 00 01 00 03 | 00 00 00 09 00 00 00 00 |w2.:....|........|
|00004290| 00 00 00 00 00 00 00 01 | 00 01 00 01 00 01 00 00 |........|........|
|000042a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042b0| 00 00 00 a1 00 9a 00 08 | ff fd 80 00 00 04 00 00 |........|........|
|000042c0| 00 a0 00 98 00 0d 00 09 | 00 2b 26 09 01 a8 00 a0 |........|.+&.....|
|000042d0| 00 99 00 a1 00 64 00 08 | 64 72 77 32 00 3a 00 04 |.....d..|drw2.:..|
|000042e0| 00 a1 14 e3 00 02 00 01 | 00 a0 00 97 00 a1 00 64 |........|.......d|
|000042f0| 00 31 64 72 77 32 00 02 | 01 e5 00 2d 01 f8 00 79 |.1drw2..|...-...y|
|00004300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004310| 00 00 00 00 ff ff ff ff | ff ff 00 01 00 01 01 00 |........|........|
|00004320| 00 00 01 00 00 a1 00 96 | 00 0c 01 00 00 00 02 78 |........|.......x|
|00004330| 00 00 00 00 00 00 00 a1 | 00 64 00 10 64 72 77 32 |........|.d..drw2|
|00004340| 00 3a 00 05 00 00 00 00 | 00 01 00 00 00 a1 00 64 |.:......|.......d|
|00004350| 00 0e 64 72 77 32 00 3a | 00 02 00 24 00 00 00 00 |..drw2.:|...$....|
|00004360| 00 a1 00 64 00 34 64 72 | 77 32 00 3a 00 01 00 03 |...d.4dr|w2.:....|
|00004370| 00 00 00 12 00 00 00 00 | 00 00 00 00 00 00 00 01 |........|........|
|00004380| 00 01 00 01 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004390| 00 00 00 00 00 00 00 00 | 00 00 00 a1 00 9a 00 08 |........|........|
|000043a0| ff fb 80 00 00 25 00 00 | 00 a0 00 98 00 0d 00 12 |.....%..|........|
|000043b0| 00 28 00 5a 00 5c 09 4d | 61 63 69 6e 74 6f 73 68 |.(.Z.\.M|acintosh|
|000043c0| 00 a0 00 99 00 a1 00 64 | 00 08 64 72 77 32 00 3a |.......d|..drw2.:|
|000043d0| 00 04 00 a1 14 e3 00 02 | 00 01 00 a0 00 97 00 a0 |........|........|
|000043e0| 00 8d 00 a1 00 64 00 06 | 64 72 77 32 00 44 00 a0 |.....d..|drw2.D..|
|000043f0| 00 83 00 01 00 0a 00 00 | 00 00 03 49 02 52 00 04 |........|...I.R..|
|00004400| 01 00 00 2e 00 04 00 00 | 00 00 00 10 00 01 00 01 |........|........|
|00004410| 00 01 00 01 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00004420| 00 00 00 8d 00 5a 00 a0 | 01 0f 00 28 00 9b 00 5a |.....Z..|...(...Z|
|00004430| 13 54 42 20 31 32 20 2d | 20 4b 65 79 20 4d 61 70 |.TB 12 -| Key Map|
|00004440| 70 69 6e 67 00 0d 00 0e | 00 a1 00 64 00 10 4f 4e |ping....|...d..ON|
|00004450| 4c 4e 00 64 00 14 00 9f | 00 5a 00 ae 00 91 00 2a |LN.d....|.Z.....*|
|00004460| 10 07 54 6f 6f 6c 62 6f | 78 00 00 04 00 00 00 0d |..Toolbo|x.......|
|00004470| 00 0c 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 00 1d |.....d..|ONLN.d..|
|00004480| 00 ba 00 5a 00 c6 00 92 | 00 2a 18 0b 52 65 76 69 |...Z....|.*..Revi|
|00004490| 73 65 64 20 62 79 3a 00 | 00 a1 00 64 00 10 4f 4e |sed by:.|...d..ON|
|000044a0| 4c 4e 00 64 00 29 00 ba | 00 a2 00 c6 01 6d 00 29 |LN.d.)..|.....m.)|
|000044b0| 48 28 4a 69 6d 20 4c 75 | 74 68 65 72 2c 20 50 65 |H(Jim Lu|ther, Pe|
|000044c0| 74 65 72 20 45 64 62 65 | 72 67 2c 20 26 20 49 6d |ter Edbe|rg, & Im|
|000044d0| 72 61 6e 20 53 61 79 65 | 65 64 00 a1 00 64 00 10 |ran Saye|ed...d..|
|000044e0| 4f 4e 4c 4e 00 64 00 52 | 00 ba 01 d6 00 c6 02 1c |ONLN.d.R|........|
|000044f0| 00 28 00 c3 01 d6 0d 46 | 65 62 72 75 61 72 79 20 |.(.....F|ebruary |
|00004500| 31 39 39 31 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |1991...d|..ONLN.d|
|00004510| 00 60 00 c6 00 5a 00 d2 | 00 8f 00 28 00 cf 00 5a |.`...Z..|...(...Z|
|00004520| 0b 57 72 69 74 74 65 6e | 20 62 79 3a 00 a1 00 64 |.Written| by:...d|
|00004530| 00 10 4f 4e 4c 4e 00 64 | 00 6c 00 c6 00 a2 00 d2 |..ONLN.d|.l......|
|00004540| 00 e9 00 29 48 0d 43 61 | 6d 65 72 6f 6e 20 42 69 |...)H.Ca|meron Bi|
|00004550| 72 73 65 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |rse....d|..ONLN.d|
|00004560| 00 7a 00 c6 01 cf 00 d2 | 02 1c 00 28 00 cf 01 cf |.z......|...(....|
|00004570| 0e 53 65 70 74 65 6d 62 | 65 72 20 31 39 38 37 00 |.Septemb|er 1987.|
|00004580| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 00 89 00 de |...d..ON|LN.d....|
|00004590| 00 5a 00 ea 00 a2 00 28 | 00 e7 00 5a 0f 54 68 69 |.Z.....(|...Z.Thi|
|000045a0| 73 20 54 65 63 68 6e 69 | 63 61 6c 20 00 06 00 01 |s Techni|cal ....|
|000045b0| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 00 98 |.....d..|ONLN.d..|
|000045c0| 00 de 00 a2 00 ea 02 1c | 00 29 48 48 4e 6f 74 65 |........|.)HHNote|
|000045d0| 20 64 65 73 63 72 69 62 | 65 73 20 74 68 65 20 4d | describ|es the M|
|000045e0| 61 63 69 6e 74 6f 73 68 | 20 66 61 6d 69 6c 79 20 |acintosh| family |
|000045f0| 6b 65 79 20 63 6f 64 65 | 20 6d 61 70 70 69 6e 67 |key code| mapping|
|00004600| 20 73 63 68 65 6d 65 20 | 77 68 65 6e 20 72 75 6e | scheme |when run|
|00004610| 6e 69 6e 67 00 06 00 00 | 00 00 00 a1 00 64 00 10 |ning....|.....d..|
|00004620| 4f 4e 4c 4e 00 64 00 e1 | 00 ea 00 5a 00 f6 02 14 |ONLN.d..|...Z....|
|00004630| 00 28 00 f3 00 5a 5c 53 | 79 73 74 65 6d 20 66 69 |.(...Z\S|ystem fi|
|00004640| 6c 65 20 34 2e 31 20 61 | 6e 64 20 6c 61 74 65 72 |le 4.1 a|nd later|
|00004650| 2e 20 20 54 68 69 73 20 | 4e 6f 74 65 20 61 6c 73 |. This |Note als|
|00004660| 6f 20 70 72 6f 76 69 64 | 65 73 20 61 20 d2 73 61 |o provid|es a .sa|
|00004670| 66 65 d3 20 6d 65 74 68 | 6f 64 20 66 6f 72 20 72 |fe. meth|od for r|
|00004680| 65 6d 61 70 70 69 6e 67 | 20 6b 65 79 62 6f 61 72 |emapping| keyboar|
|00004690| 64 73 2e 00 00 04 01 00 | 00 a1 00 64 00 10 4f 4e |ds......|...d..ON|
|000046a0| 4c 4e 00 64 01 3e 00 f7 | 00 5a 01 03 00 ff 00 2a |LN.d.>..|.Z.....*|
|000046b0| 0d 1b 43 68 61 6e 67 65 | 73 20 73 69 6e 63 65 20 |..Change|s since |
|000046c0| 4f 63 74 6f 62 65 72 20 | 31 39 39 30 3a 00 00 04 |October |1990:...|
|000046d0| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 01 59 |.....d..|ONLN.d.Y|
|000046e0| 00 f7 00 ff 01 03 01 7a | 00 29 a5 19 20 20 41 64 |.......z|.).. Ad|
|000046f0| 64 65 64 20 61 20 73 65 | 63 74 69 6f 6e 20 6f 6e |ded a se|ction on|
|00004700| 20 68 6f 77 20 00 00 2c | 00 0a 00 16 07 43 6f 75 | how ..,|.....Cou|
|00004710| 72 69 65 72 00 03 00 16 | 00 a1 00 64 00 10 4f 4e |rier....|...d..ON|
|00004720| 4c 4e 00 64 01 72 00 f6 | 01 7a 01 02 01 a4 00 29 |LN.d.r..|.z.....)|
|00004730| 7b 06 27 4b 4d 41 50 27 | 00 03 00 14 00 a1 00 64 |{.'KMAP'|.......d|
|00004740| 00 10 4f 4e 4c 4e 00 64 | 01 78 00 f7 01 a4 01 03 |..ONLN.d|.x......|
|00004750| 01 e8 00 29 2a 0f 20 72 | 65 73 6f 75 72 63 65 73 |...)*. r|esources|
|00004760| 20 61 72 65 20 00 00 06 | 00 01 00 00 00 a1 00 64 | are ...|.......d|
|00004770| 00 10 4f 4e 4c 4e 00 64 | 01 87 00 f7 01 e8 01 03 |..ONLN.d|........|
|00004780| 02 1c 00 29 44 0a 6d 61 | 74 63 68 65 64 20 74 6f |...)D.ma|tched to|
|00004790| 00 06 00 02 00 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|000047a0| 00 64 01 92 01 03 00 5a | 01 0f 01 82 00 28 01 0c |.d.....Z|.....(..|
|000047b0| 00 5a 3a 73 70 65 63 69 | 66 69 63 20 41 44 42 20 |.Z:speci|fic ADB |
|000047c0| 6b 65 79 62 6f 61 72 64 | 20 74 79 70 65 73 20 61 |keyboard| types a|
|000047d0| 6e 64 20 61 20 73 65 63 | 74 69 6f 6e 20 6f 6e 20 |nd a sec|tion on |
|000047e0| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 00 00 06 |the orig|inal ...|
|000047f0| 00 03 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00004800| 01 cc 01 03 01 82 01 0f | 02 1c 00 28 01 0c 01 82 |........|...(....|
|00004810| 1c 4d 61 63 69 6e 74 6f | 73 68 20 61 6e 64 20 4d |.Macinto|sh and M|
|00004820| 61 63 69 6e 74 6f 73 68 | 20 50 6c 75 73 00 00 06 |acintosh| Plus...|
|00004830| 00 00 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00004840| 01 e9 01 0f 00 5a 01 1b | 00 8f 00 28 01 18 00 5a |.....Z..|...(...Z|
|00004850| 0a 6b 65 79 62 6f 61 72 | 64 73 2e 00 00 07 00 01 |.keyboar|ds......|
|00004860| 00 01 00 20 01 27 00 58 | 01 27 02 1d 00 04 01 00 |... .'.X|.'......|
|00004870| 00 0d 00 0e 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00004880| 01 f4 01 40 00 5a 01 4f | 00 ad 00 2a 34 0c 49 6e |...@.Z.O|...*4.In|
|00004890| 74 72 6f 64 75 63 74 69 | 6f 6e 00 04 00 00 00 0d |troducti|on......|
|000048a0| 00 0c 00 06 00 01 00 00 | 00 a1 00 64 00 10 4f 4e |........|...d..ON|
|000048b0| 4c 4e 00 64 02 01 01 5b | 00 5a 01 67 01 5d 00 2a |LN.d...[|.Z.g.].*|
|000048c0| 18 35 53 79 73 74 65 6d | 20 66 69 6c 65 20 34 2e |.5System| file 4.|
|000048d0| 31 20 69 6e 74 72 6f 64 | 75 63 65 64 20 61 20 63 |1 introd|uced a c|
|000048e0| 68 61 6e 67 65 20 69 6e | 20 74 68 65 20 6b 65 79 |hange in| the key|
|000048f0| 73 74 72 6f 6b 65 20 00 | 00 06 00 02 00 00 00 a1 |stroke .|........|
|00004900| 00 64 00 10 4f 4e 4c 4e | 00 64 02 36 01 5b 01 5d |.d..ONLN|.d.6.[.]|
|00004910| 01 67 02 1c 00 28 01 64 | 01 5d 23 6d 61 70 70 69 |.g...(.d|.]#mappi|
|00004920| 6e 67 20 6d 65 63 68 61 | 6e 69 73 6d 20 66 6f 72 |ng mecha|nism for|
|00004930| 20 74 68 65 20 4d 61 63 | 69 6e 74 6f 73 68 00 06 | the Mac|intosh..|
|00004940| 00 01 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00004950| 02 5a 01 67 00 5a 01 73 | 01 59 00 28 01 70 00 5a |.Z.g.Z.s|.Y.(.p.Z|
|00004960| 36 66 61 6d 69 6c 79 2e | 20 20 4f 72 69 67 69 6e |6family.| Origin|
|00004970| 61 6c 6c 79 2c 20 61 20 | 6b 65 79 73 74 72 6f 6b |ally, a |keystrok|
|00004980| 65 20 63 61 75 73 65 64 | 20 61 6e 20 69 6e 74 65 |e caused| an inte|
|00004990| 72 72 75 70 74 2c 20 00 | 00 06 00 02 00 00 00 a1 |rrupt, .|........|
|000049a0| 00 64 00 10 4f 4e 4c 4e | 00 64 02 90 01 67 01 59 |.d..ONLN|.d...g.Y|
|000049b0| 01 73 02 1c 00 29 ff 28 | 61 6e 64 20 74 68 65 20 |.s...).(|and the |
|000049c0| 69 6e 74 65 72 72 75 70 | 74 20 68 61 6e 64 6c 65 |interrup|t handle|
|000049d0| 72 20 64 69 73 70 61 74 | 63 68 65 64 20 74 68 65 |r dispat|ched the|
|000049e0| 00 06 00 03 00 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|000049f0| 00 64 02 b9 01 74 00 5a | 01 80 00 87 00 28 01 7d |.d...t.Z|.....(.}|
|00004a00| 00 5a 08 6b 65 79 63 6f | 64 65 20 00 00 06 00 04 |.Z.keyco|de .....|
|00004a10| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 02 c1 |.....d..|ONLN.d..|
|00004a20| 01 74 00 87 01 80 01 cc | 00 29 2d 3d 74 6f 20 61 |.t......|.)-=to a|
|00004a30| 20 74 72 61 6e 73 6c 61 | 74 69 6f 6e 20 72 6f 75 | transla|tion rou|
|00004a40| 74 69 6e 65 20 70 6f 69 | 6e 74 65 64 20 74 6f 20 |tine poi|nted to |
|00004a50| 62 79 20 61 20 6c 6f 77 | 2d 6d 65 6d 6f 72 79 20 |by a low|-memory |
|00004a60| 70 6f 69 6e 74 65 72 20 | 28 00 00 03 00 16 00 a1 |pointer |(.......|
|00004a70| 00 64 00 10 4f 4e 4c 4e | 00 64 02 fe 01 73 01 cc |.d..ONLN|.d...s..|
|00004a80| 01 7f 02 0b 00 28 01 7d | 01 cc 09 4b 65 79 31 54 |.....(.}|...Key1T|
|00004a90| 72 61 6e 73 00 03 00 14 | 00 a1 00 64 00 10 4f 4e |rans....|...d..ON|
|00004aa0| 4c 4e 00 64 03 07 01 74 | 02 0b 01 80 02 1c 00 29 |LN.d...t|.......)|
|00004ab0| 3f 03 20 6f 72 00 00 03 | 00 16 00 06 00 01 00 00 |?. or...|........|
|00004ac0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 03 0b 01 80 |...d..ON|LN.d....|
|00004ad0| 00 5a 01 8c 00 99 00 28 | 01 8a 00 5a 09 4b 65 79 |.Z.....(|...Z.Key|
|00004ae0| 32 54 72 61 6e 73 00 03 | 00 14 00 a1 00 64 00 10 |2Trans..|.....d..|
|00004af0| 4f 4e 4c 4e 00 64 03 14 | 01 81 00 99 01 8d 00 e6 |ONLN.d..|........|
|00004b00| 00 29 3f 0f 29 2e 20 20 | 54 68 65 20 53 79 73 74 |.)?.). |The Syst|
|00004b10| 65 6d 20 00 00 06 00 02 | 00 00 00 a1 00 64 00 10 |em .....|.....d..|
|00004b20| 4f 4e 4c 4e 00 64 03 23 | 01 81 00 e6 01 8d 02 1c |ONLN.d.#|........|
|00004b30| 00 29 4d 3f 75 73 65 64 | 20 74 6f 20 69 6e 73 74 |.)M?used| to inst|
|00004b40| 61 6c 6c 20 74 68 69 73 | 20 72 6f 75 74 69 6e 65 |all this| routine|
|00004b50| 20 61 74 20 62 6f 6f 74 | 20 74 69 6d 65 2c 20 61 | at boot| time, a|
|00004b60| 6e 64 20 64 65 76 65 6c | 6f 70 65 72 73 20 77 6f |nd devel|opers wo|
|00004b70| 75 6c 64 00 00 06 00 00 | 00 00 00 a1 00 64 00 10 |uld.....|.....d..|
|00004b80| 4f 4e 4c 4e 00 64 03 63 | 01 8d 00 5a 01 99 01 35 |ONLN.d.c|...Z...5|
|00004b90| 00 28 01 96 00 5a 32 67 | 65 6e 65 72 61 6c 6c 79 |.(...Z2g|enerally|
|00004ba0| 20 72 65 70 6c 61 63 65 | 20 69 74 20 69 6e 20 70 | replace| it in p|
|00004bb0| 61 72 74 20 6f 72 20 65 | 6e 74 69 72 65 6c 79 20 |art or e|ntirely |
|00004bc0| 74 6f 20 72 65 6d 61 70 | 20 00 00 06 00 01 00 00 |to remap| .......|
|00004bd0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 03 95 01 8d |...d..ON|LN.d....|
|00004be0| 01 35 01 99 02 1c 00 29 | db 2b 74 68 65 20 6b 65 |.5.....)|.+the ke|
|00004bf0| 79 62 6f 61 72 64 2e 20 | 20 57 68 65 6e 20 74 68 |yboard. | When th|
|00004c00| 65 20 6b 65 79 63 6f 64 | 65 20 77 61 73 20 6d 61 |e keycod|e was ma|
|00004c10| 70 70 65 64 2c 00 00 06 | 00 00 00 00 00 a1 00 64 |pped,...|.......d|
|00004c20| 00 10 4f 4e 4c 4e 00 64 | 03 c1 01 99 00 5a 01 a5 |..ONLN.d|.....Z..|
|00004c30| 01 ef 00 28 01 a2 00 5a | 58 69 74 20 77 61 73 20 |...(...Z|Xit was |
|00004c40| 72 65 74 75 72 6e 65 64 | 20 74 6f 20 74 68 65 20 |returned| to the |
|00004c50| 69 6e 74 65 72 72 75 70 | 74 20 68 61 6e 64 6c 65 |interrup|t handle|
|00004c60| 72 2c 20 77 68 69 63 68 | 20 74 68 65 6e 20 70 6f |r, which| then po|
|00004c70| 73 74 65 64 20 74 68 65 | 20 65 76 65 6e 74 2e 20 |sted the| event. |
|00004c80| 20 54 68 65 20 53 79 73 | 74 65 6d 20 66 69 6c 65 | The Sys|tem file|
|00004c90| 20 00 00 06 00 01 00 00 | 00 a1 00 64 00 10 4f 4e | .......|...d..ON|
|00004ca0| 4c 4e 00 64 04 19 01 99 | 01 ef 01 a5 02 1c 00 28 |LN.d....|.......(|
|00004cb0| 01 a2 01 ef 09 63 6f 6e | 74 61 69 6e 65 64 00 06 |.....con|tained..|
|00004cc0| 00 00 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00004cd0| 04 23 01 a6 00 5a 01 b2 | 01 37 00 28 01 af 00 5a |.#...Z..|.7.(...Z|
|00004ce0| 30 62 6f 74 68 20 74 68 | 65 20 74 72 61 6e 73 6c |0both th|e transl|
|00004cf0| 61 74 69 6f 6e 20 72 6f | 75 74 69 6e 65 20 61 6e |ation ro|utine an|
|00004d00| 64 20 74 68 65 20 6b 65 | 79 20 6d 61 70 20 69 6e |d the ke|y map in|
|00004d10| 20 00 00 03 00 16 00 a1 | 00 64 00 10 4f 4e 4c 4e | .......|.d..ONLN|
|00004d20| 00 64 04 53 01 a5 01 37 | 01 b1 01 61 00 29 dd 06 |.d.S...7|...a.)..|
|00004d30| 27 49 4e 49 54 27 00 03 | 00 14 00 a1 00 64 00 10 |'INIT'..|.....d..|
|00004d40| 4f 4e 4c 4e 00 64 04 59 | 01 a6 01 61 01 b2 01 94 |ONLN.d.Y|...a....|
|00004d50| 00 29 2a 0b 20 72 65 73 | 6f 75 72 63 65 73 20 00 |.)*. res|ources .|
|00004d60| 00 03 00 16 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00004d70| 04 64 01 a5 01 94 01 b1 | 01 c5 00 29 33 07 49 44 |.d......|...)3.ID|
|00004d80| 20 3d 20 30 20 00 00 03 | 00 14 00 a1 00 64 00 10 | = 0 ...|.....d..|
|00004d90| 4f 4e 4c 4e 00 64 04 6b | 01 a6 01 c5 01 b2 01 d9 |ONLN.d.k|........|
|00004da0| 00 29 31 04 61 6e 64 20 | 00 03 00 16 00 a1 00 64 |.)1.and |.......d|
|00004db0| 00 10 4f 4e 4c 4e 00 64 | 04 6f 01 a5 01 d9 01 b1 |..ONLN.d|.o......|
|00004dc0| 02 03 00 29 14 06 49 44 | 20 3d 20 31 00 03 00 14 |...)..ID| = 1....|
|00004dd0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 04 75 01 a6 |...d..ON|LN.d.u..|
|00004de0| 02 03 01 b2 02 07 00 29 | 2a 01 2e 00 00 a1 00 64 |.......)|*......d|
|00004df0| 00 10 4f 4e 4c 4e 00 64 | 04 77 01 be 00 5a 01 ca |..ONLN.d|.w...Z..|
|00004e00| 00 75 00 28 01 c7 00 5a | 07 49 6e 20 61 6c 6c 20 |.u.(...Z|.In all |
|00004e10| 00 06 00 01 00 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|00004e20| 00 64 04 7e 01 be 00 75 | 01 ca 02 1c 00 29 1b 57 |.d.~...u|.....).W|
|00004e30| 53 79 73 74 65 6d 20 66 | 69 6c 65 73 20 73 69 6e |System f|iles sin|
|00004e40| 63 65 20 34 2e 31 2c 20 | 74 68 65 20 6c 6f 77 2d |ce 4.1, |the low-|
|00004e50| 6d 65 6d 6f 72 79 20 70 | 6f 69 6e 74 65 72 73 20 |memory p|ointers |
|00004e60| 61 72 65 20 73 74 69 6c | 6c 20 74 68 65 72 65 2c |are stil|l there,|
|00004e70| 20 61 6e 64 20 74 68 65 | 20 4d 61 63 69 6e 74 6f | and the| Macinto|
|00004e80| 73 68 20 50 6c 75 73 00 | 00 06 00 02 00 00 00 a1 |sh Plus.|........|
|00004e90| 00 64 00 10 4f 4e 4c 4e | 00 64 04 d6 01 ca 00 5a |.d..ONLN|.d.....Z|
|00004ea0| 01 d6 00 70 00 28 01 d3 | 00 5a 06 73 74 69 6c 6c |...p.(..|.Z.still|
|00004eb0| 20 00 00 06 00 03 00 00 | 00 a1 00 64 00 10 4f 4e | .......|...d..ON|
|00004ec0| 4c 4e 00 64 04 dc 01 ca | 00 70 01 d6 02 18 00 29 |LN.d....|.p.....)|
|00004ed0| 16 4e 63 61 6c 6c 73 20 | 74 68 65 6d 3b 20 68 6f |.Ncalls |them; ho|
|00004ee0| 77 65 76 65 72 2c 20 4d | 61 63 69 6e 74 6f 73 68 |wever, M|acintosh|
|00004ef0| 20 73 79 73 74 65 6d 73 | 20 65 71 75 69 70 70 65 | systems| equippe|
|00004f00| 64 20 77 69 74 68 20 41 | 44 42 20 64 6f 20 6e 6f |d with A|DB do no|
|00004f10| 74 20 63 61 6c 6c 20 74 | 68 65 73 65 20 6c 6f 77 |t call t|hese low|
|00004f20| 00 06 00 00 00 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|00004f30| 00 64 05 2a 01 ca 02 18 | 01 d6 02 1c 00 28 01 d3 |.d.*....|.....(..|
|00004f40| 02 18 01 2d 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |...-...d|..ONLN.d|
|00004f50| 05 2b 01 d6 00 5a 01 e2 | 01 39 00 28 01 df 00 5a |.+...Z..|.9.(...Z|
|00004f60| 2c 6d 65 6d 6f 72 79 20 | 70 6f 69 6e 74 65 72 73 |,memory |pointers|
|00004f70| 2e 20 20 54 68 65 20 53 | 79 73 74 65 6d 20 70 72 |. The S|ystem pr|
|00004f80| 65 73 65 72 76 65 73 20 | 74 68 65 6d 20 00 00 06 |eserves |them ...|
|00004f90| 00 01 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00004fa0| 05 57 01 d6 01 39 01 e2 | 02 1c 00 29 df 31 73 6f |.W...9..|...).1so|
|00004fb0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 74 68 | applica|tions th|
|00004fc0| 61 74 20 63 61 6c 6c 20 | 74 68 65 6d 20 63 61 6e |at call |them can|
|00004fd0| 20 73 74 69 6c 6c 20 75 | 73 65 20 74 68 65 6d 00 | still u|se them.|
|00004fe0| 00 06 00 02 00 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|00004ff0| 00 64 05 89 01 e2 00 5a | 01 ee 01 9d 00 28 01 eb |.d.....Z|.....(..|
|00005000| 00 5a 42 74 6f 20 74 72 | 61 6e 73 6c 61 74 65 20 |.ZBto tr|anslate |
|00005010| 6b 65 79 63 6f 64 65 73 | 2c 20 62 75 74 20 73 69 |keycodes|, but si|
|00005020| 6e 63 65 20 53 79 73 74 | 65 6d 20 66 69 6c 65 20 |nce Syst|em file |
|00005030| 34 2e 31 2c 20 74 68 65 | 79 20 70 6f 69 6e 74 20 |4.1, the|y point |
|00005040| 74 6f 20 61 20 00 00 06 | 00 03 00 00 00 a1 00 64 |to a ...|.......d|
|00005050| 00 10 4f 4e 4c 4e 00 64 | 05 cb 01 e2 01 9d 01 ee |..ONLN.d|........|
|00005060| 02 1c 00 28 01 eb 01 9d | 19 72 6f 75 74 69 6e 65 |...(....|.routine|
|00005070| 20 74 68 61 74 20 69 6d | 70 6c 65 6d 65 6e 74 73 | that im|plements|
|00005080| 20 61 00 06 00 00 00 00 | 00 a1 00 64 00 10 4f 4e | a......|...d..ON|
|00005090| 4c 4e 00 64 05 e5 01 ee | 00 5a 01 fa 00 be 00 28 |LN.d....|.Z.....(|
|000050a0| 01 f7 00 5a 14 64 69 66 | 66 65 72 65 6e 74 20 6d |...Z.dif|ferent m|
|000050b0| 65 63 68 61 6e 69 73 6d | 2e 00 00 04 01 00 00 0d |echanism|........|
|000050c0| 00 0e 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 05 fa |.....d..|ONLN.d..|
|000050d0| 02 12 00 5a 02 21 00 c5 | 00 2a 27 0d 41 44 42 20 |...Z.!..|.*'.ADB |
|000050e0| 4b 65 79 62 6f 61 72 64 | 73 00 00 04 00 00 00 0d |Keyboard|s.......|
|000050f0| 00 0c 00 06 00 02 00 00 | 00 a1 00 64 00 10 4f 4e |........|...d..ON|
|00005100| 4c 4e 00 64 06 08 02 2d | 00 5a 02 39 00 a1 00 2a |LN.d...-|.Z.9...*|
|00005110| 18 0e 57 69 74 68 20 6d | 75 6c 74 69 70 6c 65 20 |..With m|ultiple |
|00005120| 00 06 00 03 00 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|00005130| 00 64 06 16 02 2d 00 a1 | 02 39 02 1c 00 29 47 43 |.d...-..|.9...)GC|
|00005140| 41 70 70 6c 65 20 44 65 | 73 6b 74 6f 70 20 42 75 |Apple De|sktop Bu|
|00005150| 73 20 28 41 44 42 29 20 | 6b 65 79 62 6f 61 72 64 |s (ADB) |keyboard|
|00005160| 73 2c 20 61 20 6d 65 63 | 68 61 6e 69 73 6d 20 69 |s, a mec|hanism i|
|00005170| 73 20 6e 65 65 64 65 64 | 20 74 6f 20 6d 61 70 20 |s needed| to map |
|00005180| 74 68 65 00 00 06 00 00 | 00 00 00 a1 00 64 00 10 |the.....|.....d..|
|00005190| 4f 4e 4c 4e 00 64 06 5a | 02 39 00 5a 02 45 00 dd |ONLN.d.Z|.9.Z.E..|
|000051a0| 00 28 02 42 00 5a 1c 64 | 69 66 66 65 72 65 6e 74 |.(.B.Z.d|ifferent|
|000051b0| 20 72 61 77 20 6b 65 79 | 63 6f 64 65 73 20 74 6f | raw key|codes to|
|000051c0| 20 61 20 00 00 06 00 01 | 00 00 00 a1 00 64 00 10 | a .....|.....d..|
|000051d0| 4f 4e 4c 4e 00 64 06 76 | 02 39 00 dd 02 45 02 1c |ONLN.d.v|.9...E..|
|000051e0| 00 29 83 40 73 74 61 6e | 64 61 72 64 20 76 69 72 |.).@stan|dard vir|
|000051f0| 74 75 61 6c 20 6b 65 79 | 63 6f 64 65 20 74 68 61 |tual key|code tha|
|00005200| 74 20 63 61 6e 20 62 65 | 20 6d 61 70 70 65 64 20 |t can be| mapped |
|00005210| 74 6f 20 41 53 43 49 49 | 20 61 6e 64 20 73 70 65 |to ASCII| and spe|
|00005220| 63 69 61 6c 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |cial...d|..ONLN.d|
|00005230| 06 b7 02 45 00 5a 02 51 | 01 4d 00 28 02 4e 00 5a |...E.Z.Q|.M.(.N.Z|
|00005240| 33 63 68 61 72 61 63 74 | 65 72 20 73 65 74 73 2e |3charact|er sets.|
|00005250| 20 20 54 68 69 73 20 6d | 61 70 70 69 6e 67 20 69 | This m|apping i|
|00005260| 73 20 64 6f 6e 65 20 69 | 6e 20 61 6e 20 65 66 66 |s done i|n an eff|
|00005270| 6f 72 74 20 00 06 00 02 | 00 00 00 a1 00 64 00 10 |ort ....|.....d..|
|00005280| 4f 4e 4c 4e 00 64 06 ea | 02 45 01 4d 02 51 02 1c |ONLN.d..|.E.M.Q..|
|00005290| 00 29 f3 27 74 6f 20 72 | 65 64 75 63 65 20 6b 65 |.).'to r|educe ke|
|000052a0| 79 62 6f 61 72 64 20 68 | 61 72 64 77 61 72 65 20 |yboard h|ardware |
|000052b0| 64 65 70 65 6e 64 65 6e | 63 65 2c 00 00 06 00 01 |dependen|ce,.....|
|000052c0| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 07 12 |.....d..|ONLN.d..|
|000052d0| 02 52 00 5a 02 5e 01 c1 | 00 28 02 5b 00 5a 49 61 |.R.Z.^..|.(.[.ZIa|
|000052e0| 6e 64 20 74 68 65 20 72 | 61 77 20 6d 61 70 70 69 |nd the r|aw mappi|
|000052f0| 6e 67 20 72 6f 75 74 69 | 6e 65 20 75 73 65 73 20 |ng routi|ne uses |
|00005300| 61 20 74 61 62 6c 65 20 | 77 68 69 63 68 20 69 73 |a table |which is|
|00005310| 20 72 65 73 69 64 65 6e | 74 20 69 6e 20 74 68 65 | residen|t in the|
|00005320| 20 53 79 73 74 65 6d 20 | 00 03 00 16 00 06 00 02 | System |........|
|00005330| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 07 5b |.....d..|ONLN.d.[|
|00005340| 02 51 01 c1 02 5d 01 eb | 00 28 02 5b 01 c1 06 27 |.Q...]..|.(.[...'|
|00005350| 4b 4d 41 50 27 00 00 03 | 00 14 00 a1 00 64 00 10 |KMAP'...|.....d..|
|00005360| 4f 4e 4c 4e 00 64 07 61 | 02 52 01 eb 02 5e 02 1c |ONLN.d.a|.R...^..|
|00005370| 00 29 2a 0a 20 72 65 73 | 6f 75 72 63 65 2e 00 06 |.)*. res|ource...|
|00005380| 00 01 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00005390| 07 6d 02 5f 00 5a 02 6b | 01 59 00 28 02 68 00 5a |.m._.Z.k|.Y.(.h.Z|
|000053a0| 35 42 61 73 69 63 61 6c | 6c 79 2c 20 74 68 65 20 |5Basical|ly, the |
|000053b0| 72 61 77 20 6b 65 79 63 | 6f 64 65 20 69 73 20 75 |raw keyc|ode is u|
|000053c0| 73 65 64 20 74 6f 20 69 | 6e 64 65 78 20 69 6e 74 |sed to i|ndex int|
|000053d0| 6f 20 74 68 65 20 00 03 | 00 16 00 06 00 02 00 00 |o the ..|........|
|000053e0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 07 a2 02 5e |...d..ON|LN.d...^|
|000053f0| 01 59 02 6a 01 83 00 29 | ff 06 27 4b 4d 41 50 27 |.Y.j...)|..'KMAP'|
|00005400| 00 03 00 14 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00005410| 07 a8 02 5f 01 83 02 6b | 02 1c 00 29 2a 20 20 74 |..._...k|...)* t|
|00005420| 61 62 6c 65 3b 20 74 68 | 65 20 76 61 6c 75 65 20 |able; th|e value |
|00005430| 61 74 20 74 68 65 20 69 | 6e 64 65 78 65 64 00 06 |at the i|ndexed..|
|00005440| 00 00 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00005450| 07 c9 02 6c 00 5a 02 78 | 00 9f 00 28 02 75 00 5a |...l.Z.x|...(.u.Z|
|00005460| 10 6c 6f 63 61 74 69 6f | 6e 20 69 6e 20 74 68 65 |.locatio|n in the|
|00005470| 20 00 00 03 00 16 00 a1 | 00 64 00 10 4f 4e 4c 4e | .......|.d..ONLN|
|00005480| 00 64 07 d9 02 6b 00 9f | 02 77 00 c9 00 29 45 06 |.d...k..|.w...)E.|
|00005490| 27 4b 4d 41 50 27 00 03 | 00 14 00 a1 00 64 00 10 |'KMAP'..|.....d..|
|000054a0| 4f 4e 4c 4e 00 64 07 df | 02 6c 00 c9 02 78 01 9b |ONLN.d..|.l...x..|
|000054b0| 00 29 2a 2e 20 69 73 20 | 77 68 61 74 20 67 65 74 |.)*. is |what get|
|000054c0| 73 20 72 65 74 75 72 6e | 65 64 20 61 73 20 74 68 |s return|ed as th|
|000054d0| 65 20 76 69 72 74 75 61 | 6c 20 6b 65 79 63 6f 64 |e virtua|l keycod|
|000054e0| 65 2e 00 06 00 01 00 00 | 00 a1 00 64 00 10 4f 4e |e.......|...d..ON|
|000054f0| 4c 4e 00 64 08 0e 02 85 | 00 5a 02 91 00 70 00 28 |LN.d....|.Z...p.(|
|00005500| 02 8e 00 5a 04 54 68 65 | 20 00 00 03 00 16 00 a1 |...Z.The| .......|
|00005510| 00 64 00 10 4f 4e 4c 4e | 00 64 08 12 02 84 00 70 |.d..ONLN|.d.....p|
|00005520| 02 90 00 9a 00 29 16 06 | 27 4b 4d 41 50 27 00 03 |.....)..|'KMAP'..|
|00005530| 00 14 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 08 18 |.....d..|ONLN.d..|
|00005540| 02 85 00 9a 02 91 01 b9 | 00 29 2a 3c 20 72 65 73 |........|.)*< res|
|00005550| 6f 75 72 63 65 20 49 44 | 20 74 68 61 74 20 6d 61 |ource ID| that ma|
|00005560| 74 63 68 65 73 20 74 68 | 65 20 6b 65 79 62 6f 61 |tches th|e keyboa|
|00005570| 72 64 20 74 79 70 65 20 | 69 73 20 75 73 65 64 20 |rd type |is used |
|00005580| 69 66 20 74 68 61 74 20 | 00 03 00 16 00 a1 00 64 |if that |.......d|
|00005590| 00 10 4f 4e 4c 4e 00 64 | 08 54 02 84 01 b9 02 90 |..ONLN.d|.T......|
|000055a0| 01 e3 00 28 02 8e 01 b9 | 06 27 4b 4d 41 50 27 00 |...(....|.'KMAP'.|
|000055b0| 00 03 00 14 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|000055c0| 08 5a 02 85 01 e3 02 91 | 01 e7 00 29 2a 01 20 00 |.Z......|...)*. .|
|000055d0| 00 06 00 02 00 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|000055e0| 00 64 08 5b 02 85 01 e7 | 02 91 02 1c 00 29 04 0b |.d.[....|.....)..|
|000055f0| 72 65 73 6f 75 72 63 65 | 20 69 73 00 00 06 00 01 |resource| is.....|
|00005600| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 08 67 |.....d..|ONLN.d.g|
|00005610| 02 92 00 5a 02 9e 00 9d | 00 28 02 9b 00 5a 0f 70 |...Z....|.(...Z.p|
|00005620| 72 65 73 65 6e 74 2e 20 | 20 49 66 20 61 20 00 03 |resent. | If a ..|
|00005630| 00 16 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 08 76 |.....d..|ONLN.d.v|
|00005640| 02 91 00 9d 02 9d 00 c7 | 00 29 43 06 27 4b 4d 41 |........|.)C.'KMA|
|00005650| 50 27 00 03 00 14 00 a1 | 00 64 00 10 4f 4e 4c 4e |P'......|.d..ONLN|
|00005660| 00 64 08 7c 02 92 00 c7 | 02 9e 02 0e 00 29 2a 42 |.d.|....|.....)*B|
|00005670| 20 72 65 73 6f 75 72 63 | 65 20 49 44 20 74 68 61 | resourc|e ID tha|
|00005680| 74 20 6d 61 74 63 68 65 | 73 20 74 68 65 20 6b 65 |t matche|s the ke|
|00005690| 79 62 6f 61 72 64 20 74 | 79 70 65 20 63 61 6e 6e |yboard t|ype cann|
|000056a0| 6f 74 20 62 65 20 66 6f | 75 6e 64 2c 20 74 68 65 |ot be fo|und, the|
|000056b0| 6e 20 00 06 00 02 00 00 | 00 a1 00 64 00 10 4f 4e |n ......|...d..ON|
|000056c0| 4c 4e 00 64 08 be 02 92 | 02 0e 02 9e 02 1c 00 28 |LN.d....|.......(|
|000056d0| 02 9b 02 0e 03 74 68 65 | 00 06 00 00 00 00 00 a1 |.....the|........|
|000056e0| 00 64 00 10 4f 4e 4c 4e | 00 64 08 c2 02 9f 00 5a |.d..ONLN|.d.....Z|
|000056f0| 02 ab 00 c7 00 28 02 a8 | 00 5a 17 73 79 73 74 65 |.....(..|.Z.syste|
|00005700| 6d 20 61 74 74 65 6d 70 | 74 73 20 74 6f 20 75 73 |m attemp|ts to us|
|00005710| 65 20 00 03 00 16 00 a1 | 00 64 00 10 4f 4e 4c 4e |e ......|.d..ONLN|
|00005720| 00 64 08 d9 02 9e 00 c7 | 02 aa 00 f1 00 29 6d 06 |.d......|.....)m.|
|00005730| 27 4b 4d 41 50 27 00 03 | 00 14 00 a1 00 64 00 10 |'KMAP'..|.....d..|
|00005740| 4f 4e 4c 4e 00 64 08 df | 02 9f 00 f1 02 ab 00 f4 |ONLN.d..|........|
|00005750| 00 29 2a 01 20 00 00 06 | 00 01 00 00 00 a1 00 64 |.)*. ...|.......d|
|00005760| 00 10 4f 4e 4c 4e 00 64 | 08 e0 02 9f 00 f4 02 ab |..ONLN.d|........|
|00005770| 01 20 00 29 03 09 72 65 | 73 6f 75 72 63 65 20 00 |. .)..re|source .|
|00005780| 00 03 00 16 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00005790| 08 e9 02 9e 01 20 02 aa | 01 4c 00 29 2c 06 49 44 |..... ..|.L.),.ID|
|000057a0| 20 3d 20 30 00 03 00 14 | 00 a1 00 64 00 10 4f 4e | = 0....|...d..ON|
|000057b0| 4c 4e 00 64 08 ef 02 9f | 01 4c 02 ab 01 64 00 29 |LN.d....|.L...d.)|
|000057c0| 2c 06 2e 20 20 49 66 20 | 00 03 00 16 00 a1 00 64 |,.. If |.......d|
|000057d0| 00 10 4f 4e 4c 4e 00 64 | 08 f5 02 9e 01 64 02 aa |..ONLN.d|.....d..|
|000057e0| 01 8e 00 29 18 06 27 4b | 4d 41 50 27 00 03 00 14 |...)..'K|MAP'....|
|000057f0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 08 fb 02 9f |...d..ON|LN.d....|
|00005800| 01 8e 02 ab 01 be 00 29 | 2a 0a 20 72 65 73 6f 75 |.......)|*. resou|
|00005810| 72 63 65 20 00 03 00 16 | 00 a1 00 64 00 10 4f 4e |rce ....|...d..ON|
|00005820| 4c 4e 00 64 09 05 02 9e | 01 be 02 aa 01 ea 00 29 |LN.d....|.......)|
|00005830| 30 06 49 44 20 3d 20 30 | 00 03 00 14 00 a1 00 64 |0.ID = 0|.......d|
|00005840| 00 10 4f 4e 4c 4e 00 64 | 09 0b 02 9f 01 ea 02 ab |..ONLN.d|........|
|00005850| 02 1c 00 29 2c 0a 20 63 | 61 6e 6e 6f 74 20 62 65 |...),. c|annot be|
|00005860| 00 ff 00 a1 00 c0 01 f4 | 25 25 44 53 49 44 49 43 |........|%%DSIDIC|
|00005870| 54 3a 5f 63 76 0d 63 75 | 72 72 65 6e 74 64 69 63 |T:_cv.cu|rrentdic|
|00005880| 74 20 2f 62 75 20 6b 6e | 6f 77 6e 20 7b 62 75 7d |t /bu kn|own {bu}|
|00005890| 69 66 0d 75 73 65 72 64 | 69 63 74 20 2f 5f 63 76 |if.userd|ict /_cv|
|000058a0| 20 6b 6e 6f 77 6e 20 6e | 6f 74 7b 75 73 65 72 64 | known n|ot{userd|
|000058b0| 69 63 74 20 2f 5f 63 76 | 20 33 30 20 64 69 63 74 |ict /_cv| 30 dict|
|000058c0| 20 70 75 74 7d 69 66 0d | 5f 63 76 20 62 65 67 69 | put}if.|_cv begi|
|000058d0| 6e 0d 2f 62 64 66 7b 62 | 69 6e 64 20 64 65 66 7d |n./bdf{b|ind def}|
|000058e0| 62 69 6e 64 20 64 65 66 | 0d 63 75 72 72 65 6e 74 |bind def|.current|
|000058f0| 73 63 72 65 65 6e 2f 63 | 73 20 65 78 63 68 20 64 |screen/c|s exch d|
|00005900| 65 66 2f 63 61 20 65 78 | 63 68 20 64 65 66 2f 63 |ef/ca ex|ch def/c|
|00005910| 66 20 65 78 63 68 20 64 | 65 66 0d 2f 73 65 74 63 |f exch d|ef./setc|
|00005920| 6d 79 6b 63 6f 6c 6f 72 | 20 77 68 65 72 65 7b 2f |mykcolor| where{/|
|00005930| 73 65 74 63 6d 79 6b 63 | 6f 6c 6f 72 20 67 65 74 |setcmykc|olor get|
|00005940| 20 2f 63 76 63 6d 79 6b | 20 65 78 63 68 20 64 65 | /cvcmyk| exch de|
|00005950| 66 7d 7b 2f 63 76 63 6d | 79 6b 7b 31 20 73 75 62 |f}{/cvcm|yk{1 sub|
|00005960| 20 34 20 31 20 72 6f 6c | 6c 20 33 7b 33 20 69 6e | 4 1 rol|l 3{3 in|
|00005970| 64 65 78 20 61 64 64 20 | 6e 65 67 20 64 75 70 20 |dex add |neg dup |
|00005980| 30 20 6c 74 7b 70 6f 70 | 20 30 7d 69 66 20 33 20 |0 lt{pop| 0}if 3 |
|00005990| 31 20 72 6f 6c 6c 7d 72 | 65 70 65 61 74 20 73 65 |1 roll}r|epeat se|
|000059a0| 74 72 67 62 63 6f 6c 6f | 72 20 70 6f 70 7d 62 64 |trgbcolo|r pop}bd|
|000059b0| 66 20 7d 69 66 65 6c 73 | 65 0d 2f 73 73 7b 2f 2f |f }ifels|e./ss{//|
|000059c0| 63 66 20 2f 2f 63 61 20 | 2f 2f 63 73 20 73 65 74 |cf //ca |//cs set|
|000059d0| 73 63 72 65 65 6e 7d 62 | 64 66 0d 2f 73 74 67 7b |screen}b|df./stg{|
|000059e0| 73 73 20 73 65 74 67 72 | 61 79 7d 62 64 66 0d 2f |ss setgr|ay}bdf./|
|000059f0| 73 74 72 67 62 7b 73 73 | 20 73 65 74 72 67 62 63 |strgb{ss| setrgbc|
|00005a00| 6f 6c 6f 72 7d 62 64 66 | 0d 2f 73 74 63 6d 79 6b |olor}bdf|./stcmyk|
|00005a10| 7b 73 73 20 63 76 63 6d | 79 6b 7d 62 64 66 0d 2f |{ss cvcm|yk}bdf./|
|00005a20| 6d 69 6e 31 7b 64 75 70 | 20 30 20 65 71 7b 70 6f |min1{dup| 0 eq{po|
|00005a30| 70 20 31 7d 69 66 7d 62 | 64 66 0d 65 6e 64 0d 63 |p 1}if}b|df.end.c|
|00005a40| 75 72 72 65 6e 74 64 69 | 63 74 20 2f 62 6e 20 6b |urrentdi|ct /bn k|
|00005a50| 6e 6f 77 6e 20 7b 62 6e | 7d 69 66 0d 00 a0 00 bf |nown {bn|}if.....|
|00005a60| 1b 62 00 00 00 00 03 48 | 02 52 00 11 02 ff 0c 00 |.b.....H|.R......|
|00005a70| ff ff ff ff 00 00 00 00 | 00 00 00 00 02 52 00 00 |........|.....R..|
|00005a80| 03 48 00 00 00 00 00 00 | 00 1e 00 01 00 0a 00 00 |.H......|........|
|00005a90| 00 00 03 49 02 52 00 2c | 00 08 00 14 05 54 69 6d |...I.R.,|.....Tim|
|00005aa0| 65 73 00 03 00 14 00 0d | 00 0a 00 2e 00 04 00 00 |es......|........|
|00005ab0| 00 00 00 2b 36 2d 19 4d | 61 63 69 6e 74 6f 73 68 |...+6-.M|acintosh|
|00005ac0| 20 54 65 63 68 6e 69 63 | 61 6c 20 4e 6f 74 65 73 | Technic|al Notes|
|00005ad0| 00 20 00 2f 00 34 00 2f | 01 f9 00 20 02 be 00 34 |. ./.4./|... ...4|
|00005ae0| 02 be 01 f9 00 28 02 d6 | 00 36 01 32 00 29 05 05 |.....(..|.6.2.)..|
|00005af0| 20 6f 66 20 36 00 00 28 | 02 d6 01 9f 13 54 42 20 | of 6..(|.....TB |
|00005b00| 31 32 20 2d 20 4b 65 79 | 20 4d 61 70 70 69 6e 67 |12 - Key| Mapping|
|00005b10| 00 2b 37 16 07 54 6f 6f | 6c 62 6f 78 00 0d 00 0c |.+7..Too|lbox....|
|00005b20| 00 06 00 02 00 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|00005b30| 00 64 00 00 00 3c 00 36 | 00 48 00 8b 00 28 00 45 |.d...<.6|.H...(.E|
|00005b40| 00 36 10 66 6f 75 6e 64 | 2c 20 74 68 65 6e 20 72 |.6.found|, then r|
|00005b50| 61 77 20 00 00 06 00 03 | 00 00 00 a1 00 64 00 10 |aw .....|.....d..|
|00005b60| 4f 4e 4c 4e 00 64 00 10 | 00 3c 00 8b 00 48 01 f8 |ONLN.d..|.<...H..|
|00005b70| 00 29 55 44 6b 65 79 63 | 6f 64 65 20 74 6f 20 76 |.)UDkeyc|ode to v|
|00005b80| 69 72 74 75 61 6c 20 6b | 65 79 63 6f 64 65 20 6d |irtual k|eycode m|
|00005b90| 61 70 70 69 6e 67 20 64 | 6f 65 73 20 6e 6f 74 20 |apping d|oes not |
|00005ba0| 6f 63 63 75 72 2e 20 20 | 4f 6e 20 61 6c 6c 20 4d |occur. |On all M|
|00005bb0| 61 63 69 6e 74 6f 73 68 | 00 06 00 01 00 00 00 a1 |acintosh|........|
|00005bc0| 00 64 00 10 4f 4e 4c 4e | 00 64 00 55 00 49 00 36 |.d..ONLN|.d.U.I.6|
|00005bd0| 00 55 00 f4 00 28 00 52 | 00 36 27 73 79 73 74 65 |.U...(.R|.6'syste|
|00005be0| 6d 73 20 6c 61 74 65 72 | 20 74 68 61 6e 20 74 68 |ms later| than th|
|00005bf0| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 50 6c 75 73 |e Macint|osh Plus|
|00005c00| 2c 20 00 2c 00 0a 00 16 | 07 43 6f 75 72 69 65 72 |, .,....|.Courier|
|00005c10| 00 03 00 16 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00005c20| 00 7c 00 48 00 f4 00 54 | 01 1e 00 29 be 06 27 4b |.|.H...T|...)..'K|
|00005c30| 4d 41 50 27 00 03 00 14 | 00 a1 00 64 00 10 4f 4e |MAP'....|...d..ON|
|00005c40| 4c 4e 00 64 00 82 00 49 | 01 1e 00 55 01 4e 00 29 |LN.d...I|...U.N.)|
|00005c50| 2a 0a 20 72 65 73 6f 75 | 72 63 65 20 00 03 00 16 |*. resou|rce ....|
|00005c60| 00 06 00 02 00 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|00005c70| 00 64 00 8c 00 48 01 4e | 00 54 01 7c 00 29 30 06 |.d...H.N|.T.|.)0.|
|00005c80| 49 44 20 3d 20 30 00 03 | 00 14 00 a1 00 64 00 10 |ID = 0..|.....d..|
|00005c90| 4f 4e 4c 4e 00 64 00 92 | 00 49 01 7c 00 55 01 f8 |ONLN.d..|.I.|.U..|
|00005ca0| 00 29 2e 17 20 69 73 20 | 69 6e 20 52 4f 4d 2e 20 |.).. is |in ROM. |
|00005cb0| 20 54 68 65 20 67 6c 6f | 62 61 6c 00 00 06 00 00 | The glo|bal.....|
|00005cc0| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 00 aa |.....d..|ONLN.d..|
|00005cd0| 00 56 00 36 00 62 00 5e | 00 28 00 5f 00 36 09 76 |.V.6.b.^|.(._.6.v|
|00005ce0| 61 72 69 61 62 6c 65 20 | 00 03 00 16 00 a1 00 64 |ariable |.......d|
|00005cf0| 00 10 4f 4e 4c 4e 00 64 | 00 b3 00 55 00 5e 00 61 |..ONLN.d|...U.^.a|
|00005d00| 00 8f 00 29 28 07 4b 62 | 64 54 79 70 65 00 00 03 |...)(.Kb|dType...|
|00005d10| 00 14 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 00 ba |.....d..|ONLN.d..|
|00005d20| 00 56 00 8f 00 62 01 85 | 00 29 31 36 20 28 61 20 |.V...b..|.)16 (a |
|00005d30| 62 79 74 65 29 20 63 6f | 6e 74 61 69 6e 73 20 74 |byte) co|ntains t|
|00005d40| 68 65 20 74 79 70 65 20 | 6f 66 20 74 68 65 20 6c |he type |of the l|
|00005d50| 61 73 74 20 6b 65 79 62 | 6f 61 72 64 20 75 73 65 |ast keyb|oard use|
|00005d60| 64 2e 00 04 01 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |d.......|.d..ONLN|
|00005d70| 00 64 00 f1 00 6e 00 48 | 00 7a 00 7c 00 28 00 77 |.d...n.H|.z.|.(.w|
|00005d80| 00 48 07 4b 62 64 54 79 | 70 65 00 a1 00 64 00 10 |.H.KbdTy|pe...d..|
|00005d90| 4f 4e 4c 4e 00 64 00 f9 | 00 6e 00 90 00 7a 00 e7 |ONLN.d..|.n...z..|
|00005da0| 00 29 48 0d 4b 65 79 62 | 6f 61 72 64 20 54 79 70 |.)H.Keyb|oard Typ|
|00005db0| 65 00 00 20 00 7a 00 46 | 00 7a 01 de 00 04 00 00 |e.. .z.F|.z......|
|00005dc0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 01 07 00 7b |...d..ON|LN.d...{|
|00005dd0| 00 51 00 87 00 63 00 28 | 00 84 00 51 03 24 30 31 |.Q...c.(|...Q.$01|
|00005de0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 01 0b 00 7b |...d..ON|LN.d...{|
|00005df0| 00 90 00 87 01 bd 00 29 | 3f 3a 41 70 70 6c 65 20 |.......)|?:Apple |
|00005e00| 4b 65 79 62 6f 61 72 64 | 20 28 73 74 61 6e 64 61 |Keyboard| (standa|
|00005e10| 72 64 29 20 61 6e 64 20 | 41 70 70 6c 65 20 44 65 |rd) and |Apple De|
|00005e20| 73 6b 74 6f 70 20 42 75 | 73 20 4b 65 79 62 6f 61 |sktop Bu|s Keyboa|
|00005e30| 72 64 20 28 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |rd (...d|..ONLN.d|
|00005e40| 01 45 00 7b 01 bd 00 87 | 01 c5 00 28 00 84 01 bd |.E.{....|...(....|
|00005e50| 02 49 49 00 00 0d 00 0a | 00 a1 00 64 00 10 4f 4e |.II.....|...d..ON|
|00005e60| 4c 4e 00 64 01 47 00 7b | 01 c5 00 87 01 d2 00 29 |LN.d.G.{|.......)|
|00005e70| 08 02 47 53 00 0d 00 0c | 00 a1 00 64 00 10 4f 4e |..GS....|...d..ON|
|00005e80| 4c 4e 00 64 01 49 00 7b | 01 d2 00 87 01 d6 00 29 |LN.d.I.{|.......)|
|00005e90| 0d 01 29 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |..)....d|..ONLN.d|
|00005ea0| 01 4b 00 87 00 51 00 93 | 00 63 00 28 00 90 00 51 |.K...Q..|.c.(...Q|
|00005eb0| 03 24 30 32 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.$02...d|..ONLN.d|
|00005ec0| 01 4f 00 87 00 90 00 93 | 01 ac 00 29 3f 36 41 70 |.O......|...)?6Ap|
|00005ed0| 70 6c 65 20 45 78 74 65 | 6e 64 65 64 20 4b 65 79 |ple Exte|nded Key|
|00005ee0| 62 6f 61 72 64 20 61 6e | 64 20 41 70 70 6c 65 20 |board an|d Apple |
|00005ef0| 45 78 74 65 6e 64 65 64 | 20 4b 65 79 62 6f 61 72 |Extended| Keyboar|
|00005f00| 64 20 49 49 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |d II...d|..ONLN.d|
|00005f10| 01 86 00 93 00 51 00 9f | 00 63 00 28 00 9c 00 51 |.....Q..|.c.(...Q|
|00005f20| 03 24 30 34 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.$04...d|..ONLN.d|
|00005f30| 01 8a 00 93 00 90 00 9f | 00 f8 00 29 3f 13 41 70 |........|...)?.Ap|
|00005f40| 70 6c 65 20 4b 65 79 62 | 6f 61 72 64 2c 20 49 53 |ple Keyb|oard, IS|
|00005f50| 4f 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 01 9e |O....d..|ONLN.d..|
|00005f60| 00 9f 00 51 00 ab 00 63 | 00 28 00 a8 00 51 03 24 |...Q...c|.(...Q.$|
|00005f70| 30 35 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 01 a2 |05...d..|ONLN.d..|
|00005f80| 00 9f 00 90 00 ab 01 32 | 00 29 3f 1f 41 70 70 6c |.......2|.)?.Appl|
|00005f90| 65 20 45 78 74 65 6e 64 | 65 64 20 4b 65 79 62 6f |e Extend|ed Keybo|
|00005fa0| 61 72 64 20 49 49 2c 20 | 49 53 4f 00 00 a1 00 64 |ard II, |ISO....d|
|00005fb0| 00 10 4f 4e 4c 4e 00 64 | 01 c2 00 ab 00 51 00 b7 |..ONLN.d|.....Q..|
|00005fc0| 00 63 00 28 00 b4 00 51 | 03 24 30 36 00 a1 00 64 |.c.(...Q|.$06...d|
|00005fd0| 00 10 4f 4e 4c 4e 00 64 | 01 c6 00 ab 00 90 00 b7 |..ONLN.d|........|
|00005fe0| 00 b7 00 29 3f 08 50 6f | 72 74 61 62 6c 65 00 a1 |...)?.Po|rtable..|
|00005ff0| 00 64 00 10 4f 4e 4c 4e | 00 64 01 cf 00 b7 00 51 |.d..ONLN|.d.....Q|
|00006000| 00 c3 00 63 00 28 00 c0 | 00 51 03 24 30 37 00 a1 |...c.(..|.Q.$07..|
|00006010| 00 64 00 10 4f 4e 4c 4e | 00 64 01 d3 00 b7 00 90 |.d..ONLN|.d......|
|00006020| 00 c3 00 d1 00 29 3f 0d | 50 6f 72 74 61 62 6c 65 |.....)?.|Portable|
|00006030| 2c 20 49 53 4f 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |, ISO...|.d..ONLN|
|00006040| 00 64 01 e1 00 c3 00 51 | 00 cf 00 63 00 28 00 cc |.d.....Q|...c.(..|
|00006050| 00 51 03 24 30 38 00 a1 | 00 64 00 10 4f 4e 4c 4e |.Q.$08..|.d..ONLN|
|00006060| 00 64 01 e5 00 c3 00 90 | 00 cf 00 e9 00 29 3f 11 |.d......|.....)?.|
|00006070| 41 70 70 6c 65 20 4b 65 | 79 62 6f 61 72 64 20 49 |Apple Ke|yboard I|
|00006080| 49 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 01 f7 |I....d..|ONLN.d..|
|00006090| 00 cf 00 51 00 db 00 63 | 00 28 00 d8 00 51 03 24 |...Q...c|.(...Q.$|
|000060a0| 30 39 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 01 fb |09...d..|ONLN.d..|
|000060b0| 00 cf 00 90 00 db 01 03 | 00 29 3f 16 41 70 70 6c |........|.)?.Appl|
|000060c0| 65 20 4b 65 79 62 6f 61 | 72 64 20 49 49 2c 20 49 |e Keyboa|rd II, I|
|000060d0| 53 4f 00 20 00 db 00 4f | 00 db 01 de 00 a1 00 64 |SO. ...O|.......d|
|000060e0| 00 10 4f 4e 4c 4e 00 64 | 02 12 00 e8 00 36 00 f4 |..ONLN.d|.....6..|
|000060f0| 01 b7 00 28 00 f1 00 36 | 52 57 69 74 68 20 74 68 |...(...6|RWith th|
|00006100| 69 73 20 6d 65 63 68 61 | 6e 69 73 6d 2c 20 74 68 |is mecha|nism, th|
|00006110| 65 20 6b 65 79 73 74 72 | 6f 6b 65 20 63 61 75 73 |e keystr|oke caus|
|00006120| 65 73 20 61 6e 20 69 6e | 74 65 72 72 75 70 74 2c |es an in|terrupt,|
|00006130| 20 61 6e 64 20 74 68 65 | 20 69 6e 74 65 72 72 75 | and the| interru|
|00006140| 70 74 20 68 61 6e 64 6c | 65 72 20 00 00 06 00 01 |pt handl|er .....|
|00006150| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 02 64 |.....d..|ONLN.d.d|
|00006160| 00 e8 01 b7 00 f4 01 f8 | 00 28 00 f1 01 b7 0c 6d |........|.(.....m|
|00006170| 61 70 73 20 74 68 65 20 | 72 61 77 00 00 06 00 00 |aps the |raw.....|
|00006180| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 02 71 |.....d..|ONLN.d.q|
|00006190| 00 f5 00 36 01 01 00 6c | 00 28 00 fe 00 36 0b 6b |...6...l|.(...6.k|
|000061a0| 65 79 63 6f 64 65 20 74 | 6f 20 00 06 00 01 00 00 |eycode t|o ......|
|000061b0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 02 7c 00 f5 |...d..ON|LN.d.|..|
|000061c0| 00 6c 01 01 01 4f 00 29 | 36 30 61 20 d2 76 69 72 |.l...O.)|60a .vir|
|000061d0| 74 75 61 6c d3 20 6b 65 | 79 63 6f 64 65 20 2c 20 |tual. ke|ycode , |
|000061e0| 77 68 69 63 68 20 69 73 | 20 74 68 65 6e 20 73 65 |which is| then se|
|000061f0| 6e 74 20 74 6f 20 74 68 | 65 20 00 03 00 16 00 a1 |nt to th|e ......|
|00006200| 00 64 00 10 4f 4e 4c 4e | 00 64 02 ac 00 f4 01 4f |.d..ONLN|.d.....O|
|00006210| 01 00 01 8e 00 29 e3 09 | 5f 4b 65 79 54 72 61 6e |.....)..|_KeyTran|
|00006220| 73 00 00 03 00 14 00 a1 | 00 64 00 10 4f 4e 4c 4e |s.......|.d..ONLN|
|00006230| 00 64 02 b5 00 f5 01 8e | 01 01 01 f8 00 29 3f 16 |.d......|.....)?.|
|00006240| 20 74 72 61 70 2e 20 20 | 54 68 69 73 20 74 72 61 | trap. |This tra|
|00006250| 70 20 6d 61 70 73 00 06 | 00 00 00 00 00 a1 00 64 |p maps..|.......d|
|00006260| 00 10 4f 4e 4c 4e 00 64 | 02 cc 01 02 00 36 01 0e |..ONLN.d|.....6..|
|00006270| 01 85 00 28 01 0b 00 36 | 48 74 68 65 20 76 69 72 |...(...6|Hthe vir|
|00006280| 74 75 61 6c 20 6b 65 79 | 63 6f 64 65 20 74 6f 20 |tual key|code to |
|00006290| 61 6e 20 41 53 43 49 49 | 20 76 61 6c 75 65 20 28 |an ASCII| value (|
|000062a0| 75 73 69 6e 67 20 74 61 | 62 6c 65 73 20 77 68 69 |using ta|bles whi|
|000062b0| 63 68 20 72 65 73 69 64 | 65 20 69 6e 20 74 68 65 |ch resid|e in the|
|000062c0| 20 00 00 03 00 16 00 a1 | 00 64 00 10 4f 4e 4c 4e | .......|.d..ONLN|
|000062d0| 00 64 03 14 01 01 01 85 | 01 0d 01 af 00 28 01 0b |.d......|.....(..|
|000062e0| 01 85 06 27 4b 43 48 52 | 27 00 00 03 00 14 00 a1 |...'KCHR|'.......|
|000062f0| 00 64 00 10 4f 4e 4c 4e | 00 64 03 1a 01 02 01 af |.d..ONLN|.d......|
|00006300| 01 0e 01 ea 00 29 2a 0d | 20 72 65 73 6f 75 72 63 |.....)*.| resourc|
|00006310| 65 20 6f 66 20 00 00 06 | 00 01 00 00 00 a1 00 64 |e of ...|.......d|
|00006320| 00 10 4f 4e 4c 4e 00 64 | 03 27 01 02 01 ea 01 0e |..ONLN.d|.'......|
|00006330| 01 f8 00 29 3b 03 74 68 | 65 00 00 06 00 00 00 00 |...);.th|e.......|
|00006340| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 03 2b 01 0e |...d..ON|LN.d.+..|
|00006350| 00 36 01 1a 01 87 00 28 | 01 17 00 36 49 53 79 73 |.6.....(|...6ISys|
|00006360| 74 65 6d 20 66 69 6c 65 | 29 20 61 6e 64 20 72 65 |tem file|) and re|
|00006370| 74 75 72 6e 73 20 74 68 | 61 74 20 76 61 6c 75 65 |turns th|at value|
|00006380| 20 74 6f 20 74 68 65 20 | 68 61 6e 64 6c 65 72 20 | to the |handler |
|00006390| 77 68 69 63 68 20 70 6f | 73 74 73 20 74 68 65 20 |which po|sts the |
|000063a0| 65 76 65 6e 74 2e 00 03 | 00 16 00 0d 00 09 00 a1 |event...|........|
|000063b0| 00 64 00 10 4f 4e 4c 4e | 00 64 03 75 01 26 00 36 |.d..ONLN|.d.u.&.6|
|000063c0| 01 31 01 ad 00 2a 17 4b | 46 55 4e 43 54 49 4f 4e |.1...*.K|FUNCTION|
|000063d0| 20 4b 65 79 54 72 61 6e | 73 28 74 72 61 6e 73 44 | KeyTran|s(transD|
|000063e0| 61 74 61 3a 50 74 72 3b | 6b 65 79 63 6f 64 65 3a |ata:Ptr;|keycode:|
|000063f0| 49 4e 54 45 47 45 52 3b | 56 41 52 20 73 74 61 74 |INTEGER;|VAR stat|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.